Skip to content

Commit

Permalink
Fix active_transactions::completion_type (#4275)
Browse files Browse the repository at this point in the history
This fixes an issue introduced in fde815f which will erroneously report an election as dropped when it was confirmed in memory but not yet on disk. This causes active_transactions.limit_vote_hinted_elections to fail intermittently.
  • Loading branch information
clemahieu committed Sep 4, 2023
1 parent f400b28 commit f74ebde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void nano::active_transactions::cleanup_election (nano::unique_lock<nano::mutex>

nano::stat::type nano::active_transactions::completion_type (nano::election const & election) const
{
if (election.confirmed ())
if (election.status_confirmed ())
{
return nano::stat::type::active_confirmed;
}
Expand Down

0 comments on commit f74ebde

Please sign in to comment.