remove accounts_caching from Bank::new_with_paths (#29213)

This commit is contained in:
Jeff Washington (jwash) 2022-12-12 17:18:12 -06:00 committed by GitHub
parent 8ea5dd8b28
commit dd4393e46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -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(),

View File

@ -1335,7 +1335,7 @@ impl Bank {
runtime_config: Arc<RuntimeConfig>,
paths: Vec<PathBuf>,
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<Arc<HashSet<Pubkey>>>,
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<AccountsDbConfig>,