add ledger-tool verify option to verify hash calculation (#17412)
This commit is contained in:
committed by
GitHub
parent
d4fc9e7ed4
commit
99313a4ba2
@ -82,6 +82,10 @@ pub fn load(
|
||||
deserialized_bank.get_accounts_hash(),
|
||||
);
|
||||
|
||||
if process_options.accounts_db_test_hash_calculation {
|
||||
deserialized_bank.update_accounts_hash_with_index_option(false, true);
|
||||
}
|
||||
|
||||
if deserialized_snapshot_hash != (archive_slot, archive_snapshot_hash) {
|
||||
error!(
|
||||
"Snapshot has mismatch:\narchive: {:?}\ndeserialized: {:?}",
|
||||
|
@ -369,6 +369,7 @@ pub struct ProcessOptions {
|
||||
pub account_indexes: AccountSecondaryIndexes,
|
||||
pub accounts_db_caching_enabled: bool,
|
||||
pub allow_dead_slots: bool,
|
||||
pub accounts_db_test_hash_calculation: bool,
|
||||
}
|
||||
|
||||
pub fn process_blockstore(
|
||||
|
Reference in New Issue
Block a user