ledger tool limit_load_slot_count_from_snapshot avoids assert failures (#17974)
This commit is contained in:
committed by
GitHub
parent
0323ea9f7e
commit
dbd4dc04b0
@ -150,10 +150,6 @@ fn load_from_snapshot(
|
||||
deserialized_bank.set_shrink_paths(shrink_paths);
|
||||
}
|
||||
|
||||
if process_options.accounts_db_test_hash_calculation {
|
||||
deserialized_bank.update_accounts_hash_with_index_option(false, true);
|
||||
}
|
||||
|
||||
let deserialized_bank_slot_and_hash = (
|
||||
deserialized_bank.slot(),
|
||||
deserialized_bank.get_accounts_hash(),
|
||||
|
@ -404,6 +404,7 @@ pub fn process_blockstore(
|
||||
opts.account_indexes.clone(),
|
||||
opts.accounts_db_caching_enabled,
|
||||
opts.shrink_ratio,
|
||||
false,
|
||||
);
|
||||
let bank0 = Arc::new(bank0);
|
||||
info!("processing ledger for slot 0...");
|
||||
@ -3100,6 +3101,7 @@ pub mod tests {
|
||||
AccountSecondaryIndexes::default(),
|
||||
false,
|
||||
AccountShrinkThreshold::default(),
|
||||
false,
|
||||
);
|
||||
*bank.epoch_schedule()
|
||||
}
|
||||
|
Reference in New Issue
Block a user