parent
4e595e8e3c
commit
78f6ddc5b7
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue