From be53f611a7421bbe0bbfee50f865d2b9bac0e06c Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Tue, 3 Sep 2024 01:27:39 +0100 Subject: [PATCH] Add sanity check --- nano/node/active_elections.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nano/node/active_elections.cpp b/nano/node/active_elections.cpp index 8cb16c1e27..bef80ca378 100644 --- a/nano/node/active_elections.cpp +++ b/nano/node/active_elections.cpp @@ -506,6 +506,7 @@ bool nano::active_elections::erase (nano::qualified_root const & root_a) auto root_it (roots.get ().find (root_a)); if (root_it != roots.get ().end ()) { + release_assert (root_it->election->qualified_root == root_a); cleanup_election (lock, root_it->election); return true; }