remove else and always flush if over config.json active_elections_size (#2116)
This commit is contained in:
parent
e8fcb116b2
commit
af7ae2f4dd
1 changed files with 1 additions and 1 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue