Cleanup solana-ledger-tool slot output (#28129)

This commit is contained in:
steviez 2022-10-03 23:25:44 -05:00 committed by GitHub
parent 49dbae7e53
commit 8cc8a0656a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -216,13 +216,14 @@ fn output_slot(
if *method == LedgerOutputMethod::Print {
if let Ok(Some(meta)) = blockstore.meta(slot) {
if verbose_level >= 2 {
println!(" Slot Meta {:?} is_full: {}", meta, is_full);
if verbose_level >= 1 {
println!(" {:?} is_full: {}", meta, is_full);
} else {
println!(
" num_shreds: {}, parent_slot: {:?}, num_entries: {}, is_full: {}",
" num_shreds: {}, parent_slot: {:?}, next_slots: {:?}, num_entries: {}, is_full: {}",
num_shreds,
meta.parent_slot,
meta.next_slots,
entries.len(),
is_full,
);