pass enable_rehashing to verify_bank_hash_and_lamports (#27827)
This commit is contained in:
parent
4e8e0cda7e
commit
1db7da5c32
|
@ -113,6 +113,7 @@ fn test_accounts_hash_bank_hash(bencher: &mut Bencher) {
|
|||
false,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
))
|
||||
});
|
||||
}
|
||||
|
|
|
@ -855,6 +855,7 @@ impl Accounts {
|
|||
can_cached_slot_be_unflushed: bool,
|
||||
ignore_mismatch: bool,
|
||||
store_detailed_debug_info: bool,
|
||||
enable_rehashing: bool,
|
||||
) -> bool {
|
||||
if let Err(err) = self.accounts_db.verify_bank_hash_and_lamports_new(
|
||||
slot,
|
||||
|
@ -866,7 +867,7 @@ impl Accounts {
|
|||
can_cached_slot_be_unflushed,
|
||||
ignore_mismatch,
|
||||
store_detailed_debug_info,
|
||||
true,
|
||||
enable_rehashing,
|
||||
) {
|
||||
warn!("verify_bank_hash failed: {:?}, slot: {}", err, slot);
|
||||
false
|
||||
|
|
|
@ -6973,6 +6973,7 @@ impl Bank {
|
|||
let cap = self.capitalization();
|
||||
let epoch_schedule = self.epoch_schedule();
|
||||
let rent_collector = self.rent_collector();
|
||||
let enable_rehashing = self.bank_enable_rehashing_on_accounts_hash();
|
||||
if config.run_in_background {
|
||||
let ancestors = ancestors.clone();
|
||||
let accounts = Arc::clone(accounts);
|
||||
|
@ -6996,6 +6997,7 @@ impl Bank {
|
|||
config.can_cached_slot_be_unflushed,
|
||||
config.ignore_mismatch,
|
||||
config.store_hash_raw_data_for_debug,
|
||||
enable_rehashing,
|
||||
);
|
||||
accounts_
|
||||
.accounts_db
|
||||
|
@ -7017,6 +7019,7 @@ impl Bank {
|
|||
config.can_cached_slot_be_unflushed,
|
||||
config.ignore_mismatch,
|
||||
config.store_hash_raw_data_for_debug,
|
||||
enable_rehashing,
|
||||
);
|
||||
self.set_initial_accounts_hash_verification_completed();
|
||||
result
|
||||
|
|
Loading…
Reference in New Issue