Skip to content

Commit

Permalink
remove else and always flush if over config.json active_elections_size (
Browse files Browse the repository at this point in the history
  • Loading branch information
Russel Waters authored Jul 3, 2019
1 parent e8fcb11 commit af7ae2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ bool nano::active_transactions::add (std::shared_ptr<nano::block> block_a, std::
blocks.insert (std::make_pair (hash, election));
adjust_difficulty (hash);
}
else if (roots.size () >= node.config.active_elections_size)
if (roots.size () >= node.config.active_elections_size)
{
flush_lowest ();
}
Expand Down

0 comments on commit af7ae2f

Please sign in to comment.