log mismatch (#17209)

This commit is contained in:
Jeff Washington (jwash) 2021-05-14 09:50:11 -05:00 committed by GitHub
parent 76dfacca61
commit c6f7867aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3988,6 +3988,7 @@ impl AccountsDb {
let computed_hash =
loaded_account.compute_hash(*slot, pubkey);
if computed_hash != loaded_hash {
info!("hash mismatch found: computed: {}, loaded: {}, pubkey: {}", computed_hash, loaded_hash, pubkey);
mismatch_found
.fetch_add(1, Ordering::Relaxed);
return None;