From d8cd42e7298c39ebec5d591f9bed9860ad1e35b2 Mon Sep 17 00:00:00 2001 From: oldcold Date: Tue, 30 Apr 2019 22:21:01 +0800 Subject: [PATCH] sort view change and producer vector before intersection. --- libraries/chain/pbft_database.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/chain/pbft_database.cpp b/libraries/chain/pbft_database.cpp index 6d6f7b4e575..b11afe061bb 100644 --- a/libraries/chain/pbft_database.cpp +++ b/libraries/chain/pbft_database.cpp @@ -786,6 +786,9 @@ namespace eosio { } vector intersection; + + std::sort(lib_producers.begin(),lib_producers.end()); + std::sort(view_change_producers.begin(),view_change_producers.end()); std::set_intersection(lib_producers.begin(),lib_producers.end(), view_change_producers.begin(),view_change_producers.end(), back_inserter(intersection));