From 3b40fa3f442f14b77a1931968a36ac6b96b0f45f Mon Sep 17 00:00:00 2001 From: sakridge Date: Wed, 13 Oct 2021 03:50:18 -0700 Subject: [PATCH] Add is_full to ledger-tool (#20183) --- ledger-tool/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 69966eae8..89b840f98 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -185,20 +185,21 @@ fn output_slot( } } - let (entries, num_shreds, _is_full) = blockstore + let (entries, num_shreds, is_full) = blockstore .get_slot_entries_with_shred_info(slot, 0, allow_dead_slots) .map_err(|err| format!("Failed to load entries for slot {}: {:?}", slot, err))?; if *method == LedgerOutputMethod::Print { if let Ok(Some(meta)) = blockstore.meta(slot) { if verbose_level >= 2 { - println!(" Slot Meta {:?}", meta); + println!(" Slot Meta {:?} is_full: {}", meta, is_full); } else { println!( - " num_shreds: {} parent_slot: {} num_entries: {}", + " num_shreds: {} parent_slot: {} num_entries: {} is_full: {}", num_shreds, meta.parent_slot, - entries.len() + entries.len(), + is_full, ); } }