From f236b4b67098dd5e3051d997b05f0e7d19174b2f Mon Sep 17 00:00:00 2001 From: steviez Date: Tue, 11 Feb 2025 13:03:45 -0600 Subject: [PATCH] ledger-tool: Allow dead slots for slot command when metadata absent (#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 --- ledger-tool/src/output.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ledger-tool/src/output.rs b/ledger-tool/src/output.rs index bc66b656bd5d0f..38766c8d7118ff 100644 --- a/ledger-tool/src/output.rs +++ b/ledger-tool/src/output.rs @@ -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()