Skip to content

Commit

Permalink
Use combinator to simplify check for slot < halt_at_slot
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Jul 29, 2024
1 parent 46e42f3 commit 83e9841
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1733,10 +1733,7 @@ fn process_next_slots(

// This is a fork point if there are multiple children, create a new child bank for each fork
for next_slot in &meta.next_slots {
let skip_next_slot = halt_at_slot
.map(|halt_at_slot| *next_slot > halt_at_slot)
.unwrap_or(false);
if skip_next_slot {
if halt_at_slot.is_some_and(|halt_at_slot| *next_slot > halt_at_slot) {
continue;
}

Expand Down

0 comments on commit 83e9841

Please sign in to comment.