From dd4393e46dac8ec618a00800d257bc13bf3e1852 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 12 Dec 2022 17:18:12 -0600 Subject: [PATCH] remove accounts_caching from Bank::new_with_paths (#29213) --- ledger/src/blockstore_processor.rs | 1 - runtime/src/bank.rs | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 9b8771aad..a1644452a 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -803,7 +803,6 @@ pub(crate) fn process_blockstore_for_bank_0( opts.debug_keys.clone(), Some(&crate::builtins::get(opts.runtime_config.bpf_jit)), opts.account_indexes.clone(), - opts.accounts_db_caching_enabled, opts.shrink_ratio, false, opts.accounts_db_config.clone(), diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 94780d8dd..1581eab1f 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1335,7 +1335,7 @@ impl Bank { runtime_config: Arc, paths: Vec, account_indexes: AccountSecondaryIndexes, - accounts_db_caching_enabled: bool, + _accounts_db_caching_enabled: bool, shrink_ratio: AccountShrinkThreshold, ) -> Self { Self::new_with_paths( @@ -1345,7 +1345,6 @@ impl Bank { None, None, account_indexes, - accounts_db_caching_enabled, shrink_ratio, false, Some(ACCOUNTS_DB_CONFIG_FOR_TESTING), @@ -1362,7 +1361,6 @@ impl Bank { None, None, AccountSecondaryIndexes::default(), - false, AccountShrinkThreshold::default(), false, Some(ACCOUNTS_DB_CONFIG_FOR_BENCHMARKS), @@ -1379,7 +1377,6 @@ impl Bank { debug_keys: Option>>, additional_builtins: Option<&Builtins>, account_indexes: AccountSecondaryIndexes, - _accounts_db_caching_enabled: bool, shrink_ratio: AccountShrinkThreshold, debug_do_not_add_builtins: bool, accounts_db_config: Option,