Skip to content

Commit

Permalink
blockstore: Use existing function to fetch entries
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Mar 6, 2024
1 parent 184b31c commit 07b9ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/src/blockstore/blockstore_purge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ impl Blockstore {
for slot in from_slot..=to_slot {
let primary_indexes = slot_indexes(slot);

let slot_entries = self.get_any_valid_slot_entries(slot, 0);
let (slot_entries, _, _) =
self.get_slot_entries_with_shred_info(slot, 0, true /* allow_dead_slots */)?;
let transactions = slot_entries
.into_iter()
.flat_map(|entry| entry.transactions);
Expand Down

0 comments on commit 07b9ea7

Please sign in to comment.