Add ledger tool to remove dead slot (#20810)

This commit is contained in:
carllin
2021-10-19 20:23:16 -07:00
committed by GitHub
parent 0c7bade0b2
commit b5f21d5e34
2 changed files with 32 additions and 1 deletions

View File

@ -3076,6 +3076,10 @@ impl Blockstore {
self.dead_slots_cf.put(slot, &true)
}
pub fn remove_dead_slot(&self, slot: Slot) -> Result<()> {
self.dead_slots_cf.delete(slot)
}
pub fn store_duplicate_if_not_existing(
&self,
slot: Slot,