Skip to content

Commit

Permalink
Merge branch 'master' into wen_restart_set_root_when_finding_bankhash
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-coding authored Aug 12, 2024
2 parents 33667a3 + a99c916 commit 333cf0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/banking_stage/latest_unprocessed_votes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,8 @@ impl LatestUnprocessedVotes {
if !Self::is_valid_for_our_fork(&latest_vote, &slot_hashes) {
return None;
}
latest_vote.take_vote().map(|vote| {
latest_vote.take_vote().inspect(|_vote| {
self.num_unprocessed_votes.fetch_sub(1, Ordering::Relaxed);
vote
})
})
})
Expand Down
1 change: 1 addition & 0 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,7 @@ impl ReplayStage {
/// - Bank forks already contains a bank for this leader slot
/// - We have not landed a vote yet and the `wait_for_vote_to_start_leader` flag is set
/// - We have failed the propagated check
///
/// Returns whether a new working bank was created and inserted into bank forks.
#[allow(clippy::too_many_arguments)]
fn maybe_start_leader(
Expand Down

0 comments on commit 333cf0d

Please sign in to comment.