ledger tool limit_load_slot_count_from_snapshot avoids assert failures (backport #17974) (#18008)

* ledger tool limit_load_slot_count_from_snapshot avoids assert failures (#17974)

(cherry picked from commit dbd4dc04b0)

# Conflicts:
#	core/tests/snapshots.rs
#	ledger/src/blockstore_processor.rs
#	runtime/benches/accounts.rs
#	runtime/src/bank.rs

* fix merge errors

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-17 01:32:50 +00:00
committed by GitHub
parent f633f34e43
commit 5c495ad1b0
7 changed files with 37 additions and 14 deletions

View File

@@ -401,6 +401,7 @@ pub fn process_blockstore(
Some(&crate::builtins::get(opts.bpf_jit)),
opts.account_indexes.clone(),
opts.accounts_db_caching_enabled,
false,
);
let bank0 = Arc::new(bank0);
info!("processing ledger for slot 0...");
@@ -3096,6 +3097,7 @@ pub mod tests {
None,
AccountSecondaryIndexes::default(),
false,
false,
);
*bank.epoch_schedule()
}