Skip to content

Commit

Permalink
Merge pull request #81 from boscore/fix_producers_empty
Browse files Browse the repository at this point in the history
fix propose empty producers
  • Loading branch information
qianxiaofeng authored Aug 21, 2019
2 parents a629da2 + 3b05398 commit 37502fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/eosio.system/src/voting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace eosiosystem {
top_producers.emplace_back( std::pair<eosio::producer_key,uint16_t>({{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;
}

Expand Down

0 comments on commit 37502fc

Please sign in to comment.