Skip to content

Commit

Permalink
Add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Sep 3, 2024
1 parent d9b8593 commit be53f61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/node/active_elections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ bool nano::active_elections::erase (nano::qualified_root const & root_a)
auto root_it (roots.get<tag_root> ().find (root_a));
if (root_it != roots.get<tag_root> ().end ())
{
release_assert (root_it->election->qualified_root == root_a);
cleanup_election (lock, root_it->election);
return true;
}
Expand Down

0 comments on commit be53f61

Please sign in to comment.