From af7ae2f4dd6607731af31de33e7d5d7c06cbaa06 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Tue, 2 Jul 2019 20:13:53 -0400 Subject: [PATCH] remove else and always flush if over config.json active_elections_size (#2116) --- 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 b5a3956003..8fada08c63 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 (); }