Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nano/node/election.cpp
Original file line number Diff line number Diff line change
@@ -366,10 +366,7 @@ void nano::election::confirm_if_quorum (nano::unique_lock<nano::mutex> & lock_a)
{
if (node.ledger.cache.final_votes_confirmation_canary.load () && !is_quorum.exchange (true) && node.config.enable_voting && node.wallets.reps ().voting > 0)
{
auto hash = status.winner->hash ();
lock_a.unlock ();
node.final_generator.add (root, hash);
lock_a.lock ();
node.final_generator.add (root, status.winner->hash ());
}
if (!node.ledger.cache.final_votes_confirmation_canary.load () || final_weight >= node.online_reps.delta ())
{

0 comments on commit b1be785

Please sign in to comment.