Skip to content

Commit

Permalink
drain tick_hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Oct 3, 2024
1 parent a36489c commit 56d20aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,9 @@ fn process_entries(
log_messages_bytes_limit,
prioritization_fee_cache,
)?;
for hash in &tick_hashes {
bank.register_tick(hash);
for hash in tick_hashes.drain(..) {
bank.register_tick(&hash);
}
tick_hashes.clear();
}
}
EntryType::Transactions(transactions) => {
Expand Down

0 comments on commit 56d20aa

Please sign in to comment.