From 86667f5a6f956d02f203a61bbd36d2ce10a273f2 Mon Sep 17 00:00:00 2001 From: Brooks Date: Thu, 18 Apr 2024 19:24:04 -0400 Subject: [PATCH] Removes check_hash from scan_snapshot_stores_with_cache() (#892) --- accounts-db/src/accounts_db.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 6f59903ddddda2..6f29ec8f1ae782 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -7200,7 +7200,6 @@ impl AccountsDb { let mut time = Measure::start("scan all accounts"); stats.num_snapshot_storage = storages.storage_count(); stats.num_slots = storages.slot_count(); - let mismatch_found = Arc::new(AtomicU64::new(0)); let range = bin_range.end - bin_range.start; let sort_time = Arc::new(AtomicU64::new(0)); @@ -7225,14 +7224,6 @@ impl AccountsDb { stats.sort_time_total_us += sort_time.load(Ordering::Relaxed); - if config.check_hash && mismatch_found.load(Ordering::Relaxed) > 0 { - warn!( - "{} mismatched account hash(es) found", - mismatch_found.load(Ordering::Relaxed) - ); - return Err(AccountsHashVerificationError::MismatchedAccountsHash); - } - time.stop(); stats.scan_time_total_us += time.as_us();