Rename slot_hash => bank_hash in AcoountsDB (#7579)

* Rename slot_hash => bank_hash in AcoountsDB
This commit is contained in:
Ryo Onodera
2019-12-23 10:50:31 +09:00
committed by GitHub
parent 3d133d61ca
commit c8fe4043b6
2 changed files with 28 additions and 31 deletions

View File

@@ -475,10 +475,10 @@ impl Accounts {
}
pub fn bank_hash_at(&self, slot_id: Slot) -> BankHash {
let slot_hashes = self.accounts_db.slot_hashes.read().unwrap();
*slot_hashes
let bank_hashes = self.accounts_db.bank_hashes.read().unwrap();
*bank_hashes
.get(&slot_id)
.expect("No accounts hash was found for this bank, that should not be possible")
.expect("No bank hash was found for this bank, that should not be possible")
}
/// This function will prevent multiple threads from modifying the same account state at the