Skip to content

Commit

Permalink
Removes check_hash from scan_snapshot_stores_with_cache() (anza-xyz#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Apr 18, 2024
1 parent 16770cc commit 86667f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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();

Expand Down

0 comments on commit 86667f5

Please sign in to comment.