From 3768cb0a2be78f51ce795d6fb28df3558cc01832 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Tue, 2 Jul 2019 13:13:32 -0400 Subject: [PATCH] remove else and always flush if over config.json active_elections_size --- nano/node/active_transactions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/node/active_transactions.cpp b/nano/node/active_transactions.cpp index ab4224852d..39a10e93cb 100644 --- a/nano/node/active_transactions.cpp +++ b/nano/node/active_transactions.cpp @@ -457,7 +457,7 @@ bool nano::active_transactions::add (std::shared_ptr 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 (); }