Skip to content

Commit

Permalink
ledger-tool: Allow dead slots for slot command when metadata absent (#…
Browse files Browse the repository at this point in the history
…4913)

The blockstore method to fetch entries will not return dead slots by
default. There is a way to override this behavior in ledger-tool, but
the flag was not plumbed in every case. This change does so for the
slot command
  • Loading branch information
steviez authored Feb 11, 2025
1 parent fe06baa commit f236b4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ledger-tool/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,11 @@ pub fn output_slot(
Err(_) => {
// Transaction metadata could be missing, try to fetch just the
// entries and leave the metadata fields empty
let entries = blockstore.get_slot_entries(slot, /*shred_start_index:*/ 0)?;
let (entries, _, _) = blockstore.get_slot_entries_with_shred_info(
slot,
/*shred_start_index:*/ 0,
allow_dead_slots,
)?;

let blockhash = entries
.last()
Expand Down

0 comments on commit f236b4b

Please sign in to comment.