Skip to content

Commit

Permalink
Erase vote cache entries when block is confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Oct 9, 2023
1 parent 02cdaef commit 5ffd62c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/node/scheduler/hinted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ void nano::scheduler::hinted::activate (const nano::store::transaction & transac
if (node.block_confirmed_or_being_confirmed (transaction, current_hash))
{
stats.inc (nano::stat::type::hinting, nano::stat::detail::already_confirmed);
vote_cache.erase (current_hash); // Remove from vote cache
continue; // Move on to the next item in the stack
}

Expand Down

0 comments on commit 5ffd62c

Please sign in to comment.