Fix active_transactions::completion_type (#4275)
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.
This commit is contained in:
parent
f400b28aa5
commit
f74ebde5ba
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue