Skip to content

Commit

Permalink
Prevent block in confirmation_heigh_processor from being activated
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity-dev authored and gr0vity committed Feb 1, 2024
1 parent 647c3c4 commit ebaba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/scheduler/priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bool nano::scheduler::priority::activate (nano::account const & account_a, store
auto hash = conf_info.height == 0 ? info->open_block : node.store.block.successor (transaction, conf_info.frontier);
auto block = node.store.block.get (transaction, hash);
debug_assert (block != nullptr);
if (node.ledger.dependents_confirmed (transaction, *block))
if (node.ledger.dependents_confirmed (transaction, *block) && !node.confirmation_height_processor.is_processing_block (hash))
{
stats.inc (nano::stat::type::election_scheduler, nano::stat::detail::activated);
auto balance = node.ledger.balance (transaction, hash);
Expand Down

0 comments on commit ebaba02

Please sign in to comment.