Compute rep votes with vote by hash (bugfix) (#1062)
This commit is contained in:
parent
62a8e677b3
commit
640813b270
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue