Call Bank::update_accounts_hash()
before taking bank snapshot (#19765)
This is a bugfix. When `load_frozen_forks()` called `snapshot_bank()`, the accounts hash was not computed. So then when a snapshot archive was eventually created, its hash would be all 1s, which is clearly wrong. The fix is to update the bank's accounts hash before taking the bank snapshot.
This commit is contained in:
@ -2751,6 +2751,8 @@ pub fn main() {
|
||||
snapshot_version,
|
||||
maximum_full_snapshot_archives_to_retain,
|
||||
maximum_incremental_snapshot_archives_to_retain,
|
||||
accounts_hash_use_index: validator_config.accounts_db_use_index_hash_calculation,
|
||||
accounts_hash_debug_verify: validator_config.accounts_db_test_hash_calculation,
|
||||
});
|
||||
|
||||
validator_config.accounts_hash_interval_slots =
|
||||
|
Reference in New Issue
Block a user