From bb0bfc4214f2524cde35d2dd3c7f3970566ce935 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 13 Dec 2022 09:16:24 -0600 Subject: [PATCH] remove bank_from_latest_snapshot_archives(caching_enabled) (#29238) --- core/tests/snapshots.rs | 2 -- ledger/src/bank_forks_utils.rs | 1 - runtime/src/snapshot_utils.rs | 2 -- 3 files changed, 5 deletions(-) diff --git a/core/tests/snapshots.rs b/core/tests/snapshots.rs index 28bbf439c7..fe61cdfed0 100644 --- a/core/tests/snapshots.rs +++ b/core/tests/snapshots.rs @@ -917,7 +917,6 @@ fn restore_from_snapshots_and_check_banks_are_equal( None, None, AccountSecondaryIndexes::default(), - false, None, accounts_db::AccountShrinkThreshold::default(), false, @@ -1138,7 +1137,6 @@ fn test_snapshots_with_background_services( None, None, AccountSecondaryIndexes::default(), - false, None, accounts_db::AccountShrinkThreshold::default(), false, diff --git a/ledger/src/bank_forks_utils.rs b/ledger/src/bank_forks_utils.rs index a48c54a774..e5b9a581d3 100644 --- a/ledger/src/bank_forks_utils.rs +++ b/ledger/src/bank_forks_utils.rs @@ -212,7 +212,6 @@ fn bank_forks_from_snapshot( process_options.runtime_config.bpf_jit, )), process_options.account_indexes.clone(), - true, // caching_enabled process_options.limit_load_slot_count_from_snapshot, process_options.shrink_ratio, process_options.accounts_db_test_hash_calculation, diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index df19b33ef9..87a6c8916e 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -1062,7 +1062,6 @@ pub fn bank_from_latest_snapshot_archives( debug_keys: Option>>, additional_builtins: Option<&Builtins>, account_secondary_indexes: AccountSecondaryIndexes, - _accounts_db_caching_enabled: bool, limit_load_slot_count_from_snapshot: Option, shrink_ratio: AccountShrinkThreshold, test_hash_calculation: bool, @@ -3623,7 +3622,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false,