ledger tool limit_load_slot_count_from_snapshot avoids assert failures (#17974)

This commit is contained in:
Jeff Washington (jwash)
2021-06-15 15:39:22 -05:00
committed by GitHub
parent 0323ea9f7e
commit dbd4dc04b0
7 changed files with 37 additions and 14 deletions

View File

@ -61,6 +61,7 @@ fn test_accounts_create(bencher: &mut Bencher) {
AccountSecondaryIndexes::default(),
false,
AccountShrinkThreshold::default(),
false,
);
bencher.iter(|| {
let mut pubkeys: Vec<Pubkey> = vec![];
@ -81,6 +82,7 @@ fn test_accounts_squash(bencher: &mut Bencher) {
AccountSecondaryIndexes::default(),
false,
AccountShrinkThreshold::default(),
false,
));
let mut pubkeys: Vec<Pubkey> = vec![];
deposit_many(&prev_bank, &mut pubkeys, 250_000).unwrap();