Add is_full to ledger-tool (#20183)
This commit is contained in:
parent
b4f146f692
commit
3b40fa3f44
|
@ -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)
|
.get_slot_entries_with_shred_info(slot, 0, allow_dead_slots)
|
||||||
.map_err(|err| format!("Failed to load entries for slot {}: {:?}", slot, err))?;
|
.map_err(|err| format!("Failed to load entries for slot {}: {:?}", slot, err))?;
|
||||||
|
|
||||||
if *method == LedgerOutputMethod::Print {
|
if *method == LedgerOutputMethod::Print {
|
||||||
if let Ok(Some(meta)) = blockstore.meta(slot) {
|
if let Ok(Some(meta)) = blockstore.meta(slot) {
|
||||||
if verbose_level >= 2 {
|
if verbose_level >= 2 {
|
||||||
println!(" Slot Meta {:?}", meta);
|
println!(" Slot Meta {:?} is_full: {}", meta, is_full);
|
||||||
} else {
|
} else {
|
||||||
println!(
|
println!(
|
||||||
" num_shreds: {} parent_slot: {} num_entries: {}",
|
" num_shreds: {} parent_slot: {} num_entries: {} is_full: {}",
|
||||||
num_shreds,
|
num_shreds,
|
||||||
meta.parent_slot,
|
meta.parent_slot,
|
||||||
entries.len()
|
entries.len(),
|
||||||
|
is_full,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue