Verify frozen bank from snapshot by hashing (#8184)

This commit is contained in:
Ryo Onodera
2020-02-11 16:46:33 +09:00
committed by GitHub
parent 1528959327
commit 7614af2a45
2 changed files with 57 additions and 14 deletions

View File

@@ -374,6 +374,7 @@ impl Accounts {
})
}
#[must_use]
pub fn verify_bank_hash(&self, slot: Slot, ancestors: &HashMap<Slot, usize>) -> bool {
if let Err(err) = self.accounts_db.verify_bank_hash(slot, ancestors) {
warn!("verify_bank_hash failed: {:?}", err);