remove else and always flush if over config.json active_elections_size (#2116)

This commit is contained in:
Russel Waters 2019-07-02 20:13:53 -04:00 committed by GitHub
commit af7ae2f4dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ();
}