Skip to content

Commit

Permalink
Fixed failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano committed May 8, 2024
1 parent ff9612d commit 4e558ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nano/node/election.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,9 @@ bool nano::election::has_expired () const
return now > last_vote_received + hinted_election_max_idle;
case election_behavior::optimistic:
return now > last_vote_received + optimistic_election_max_idle;
default:
debug_assert (false);
return false;
}
debug_assert (false);
return {};
}

std::chrono::seconds nano::election::cooldown_time (nano::uint128_t weight) const
Expand Down

0 comments on commit 4e558ad

Please sign in to comment.