Skip to content

Commit

Permalink
reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Oct 26, 2023
1 parent 70c1c01 commit 48c875d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7673,15 +7673,20 @@ impl Bank {
});

let (verified_bank, verify_bank_time_us) = measure_us!({
info!("Verifying bank...");
let verified = self
let should_verify_bank = !self
.rc
.accounts
.accounts_db
.test_skip_rewrites_but_include_in_bank_hash
|| self.verify_hash();
info!("Verifying bank... Done.");
verified
.test_skip_rewrites_but_include_in_bank_hash;
if should_verify_bank {
info!("Verifying bank...");
let verified = self.verify_hash();
info!("Verifying bank... Done.");
verified
} else {
info!("Verifying bank... Skipped.");
true
}
});

datapoint_info!(
Expand Down

0 comments on commit 48c875d

Please sign in to comment.