Introduce slot dumping to ReplayStage (#18160)

This commit is contained in:
carllin
2021-07-08 19:07:32 -07:00
committed by GitHub
parent 27cc7577a1
commit 4d3e301ee4
13 changed files with 1322 additions and 520 deletions

View File

@ -90,6 +90,10 @@ impl BankForks {
maybe_bank
}
pub fn bank_hash(&self, slot: Slot) -> Option<Hash> {
self.get(slot).map(|bank| bank.hash())
}
pub fn root_bank(&self) -> Arc<Bank> {
self[self.root()].clone()
}