add --limit_load_slot_count_from_snapshot to ledger-tool (#17417)

This commit is contained in:
Jeff Washington (jwash)
2021-05-26 10:36:12 -05:00
committed by GitHub
parent bb72ab7f1b
commit 6b9d8d41a3
8 changed files with 32 additions and 2 deletions

View File

@ -71,6 +71,7 @@ pub fn load(
Some(&crate::builtins::get(process_options.bpf_jit)),
process_options.account_indexes.clone(),
process_options.accounts_db_caching_enabled,
process_options.limit_load_slot_count_from_snapshot,
)
.expect("Load from snapshot failed");
if let Some(shrink_paths) = shrink_paths {

View File

@ -368,6 +368,7 @@ pub struct ProcessOptions {
pub debug_keys: Option<Arc<HashSet<Pubkey>>>,
pub account_indexes: AccountSecondaryIndexes,
pub accounts_db_caching_enabled: bool,
pub limit_load_slot_count_from_snapshot: Option<usize>,
pub allow_dead_slots: bool,
pub accounts_db_test_hash_calculation: bool,
}