Compute rep votes with vote by hash (bugfix) (#1062)

This commit is contained in:
Lee Bousfield 2018-08-18 12:52:09 -06:00 committed by Roy Keene
commit 640813b270

View file

@ -3757,6 +3757,7 @@ void rai::active_transactions::announce_votes ()
// Broadcast winner
if (node.ledger.could_fit (transaction, *election_l->status.winner))
{
election_l->compute_rep_votes (transaction);
if (std::chrono::system_clock::now () >= node.config.generate_hash_votes_at)
{
node.network.republish_block (transaction, election_l->status.winner, false);
@ -3772,7 +3773,6 @@ void rai::active_transactions::announce_votes ()
}
else
{
election_l->compute_rep_votes (transaction);
node.network.republish_block (transaction, election_l->status.winner);
}
}