diff --git a/nano/node/bootstrap/account_sets.cpp b/nano/node/bootstrap/account_sets.cpp index 4093644f5d..e8186b2af4 100644 --- a/nano/node/bootstrap/account_sets.cpp +++ b/nano/node/bootstrap/account_sets.cpp @@ -128,22 +128,14 @@ void nano::bootstrap::account_sets::unblock (nano::account const & account, std: // Unblock only if the dependency is fulfilled auto existing = blocking.get ().find (account); + if (existing != blocking.get ().end () && (!hash || existing->dependency == *hash)) { stats.inc (nano::stat::type::bootstrap_account_sets, nano::stat::detail::unblock); - debug_assert (priorities.get ().count (account) == 0); - if (!existing->original_entry.account.is_zero ()) - { - debug_assert (existing->original_entry.account == account); - priorities.get ().insert (existing->original_entry); - } - else - { - priorities.get ().insert ({ account, account_sets::priority_initial }); - } - blocking.get ().erase (account); + priorities.get ().insert ({ account, account_sets::priority_initial }); + blocking.get ().erase (account); trim_overflow (); } else