Fix spelling of verification in accounts_db (#8117)

automerge
This commit is contained in:
sakridge 2020-02-04 11:45:47 -08:00 committed by GitHub
parent 4e595e8e3c
commit 78f6ddc5b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -182,7 +182,7 @@ pub enum AccountStorageStatus {
} }
#[derive(Debug)] #[derive(Debug)]
pub enum BankHashVerificatonError { pub enum BankHashVerificationError {
MismatchedAccountHash, MismatchedAccountHash,
MismatchedBankHash, MismatchedBankHash,
MissingBankHash, MissingBankHash,
@ -1038,8 +1038,8 @@ impl AccountsDB {
&self, &self,
slot: Slot, slot: Slot,
ancestors: &HashMap<Slot, usize>, ancestors: &HashMap<Slot, usize>,
) -> Result<(), BankHashVerificatonError> { ) -> Result<(), BankHashVerificationError> {
use BankHashVerificatonError::*; use BankHashVerificationError::*;
let (hashes, mismatch_found) = self.scan_accounts( let (hashes, mismatch_found) = self.scan_accounts(
ancestors, ancestors,
@ -2314,7 +2314,7 @@ pub mod tests {
#[test] #[test]
fn test_verify_bank_hash() { fn test_verify_bank_hash() {
use BankHashVerificatonError::*; use BankHashVerificationError::*;
solana_logger::setup(); solana_logger::setup();
let db = AccountsDB::new(Vec::new()); let db = AccountsDB::new(Vec::new());
@ -2367,7 +2367,7 @@ pub mod tests {
#[test] #[test]
fn test_verify_bank_hash_bad_account_hash() { fn test_verify_bank_hash_bad_account_hash() {
use BankHashVerificatonError::*; use BankHashVerificationError::*;
solana_logger::setup(); solana_logger::setup();
let db = AccountsDB::new(Vec::new()); let db = AccountsDB::new(Vec::new());