From 3b053987b3246dcf588a4b57909320a67226cda3 Mon Sep 17 00:00:00 2001 From: vonhenry Date: Mon, 13 May 2019 13:38:25 +0800 Subject: [PATCH] fix propose empty producers --- contracts/eosio.system/src/voting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/eosio.system/src/voting.cpp b/contracts/eosio.system/src/voting.cpp index a035e4267..7ae2b1318 100755 --- a/contracts/eosio.system/src/voting.cpp +++ b/contracts/eosio.system/src/voting.cpp @@ -97,7 +97,7 @@ namespace eosiosystem { top_producers.emplace_back( std::pair({{it->owner, it->producer_key}, it->location}) ); } - if ( top_producers.size() < _gstate.last_producer_schedule_size ) { + if ( top_producers.empty() || top_producers.size() < _gstate.last_producer_schedule_size ) { return; }