From 2c2324f4ea827f820561e51e8c1ac9d2b291e583 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 12 Dec 2022 17:30:46 -0600 Subject: [PATCH] remove caching_enabled from Bank::new_with_paths_for_tests (#29214) --- core/tests/snapshots.rs | 1 - ledger/src/blockstore_processor.rs | 1 - runtime/src/bank.rs | 5 +---- runtime/src/snapshot_utils.rs | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/tests/snapshots.rs b/core/tests/snapshots.rs index aadae5e55d..28bbf439c7 100644 --- a/core/tests/snapshots.rs +++ b/core/tests/snapshots.rs @@ -102,7 +102,6 @@ impl SnapshotTestConfig { Arc::::default(), vec![accounts_dir.path().to_path_buf()], AccountSecondaryIndexes::default(), - true, accounts_db::AccountShrinkThreshold::default(), ); bank0.freeze(); diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index a1644452a8..ec9241f7f8 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -3714,7 +3714,6 @@ pub mod tests { Arc::::default(), account_paths, AccountSecondaryIndexes::default(), - false, AccountShrinkThreshold::default(), ); *bank.epoch_schedule() diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 1581eab1f5..019fcc14eb 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1233,7 +1233,6 @@ impl Bank { runtime_config, Vec::new(), AccountSecondaryIndexes::default(), - false, AccountShrinkThreshold::default(), ) } @@ -1248,7 +1247,7 @@ impl Bank { pub(crate) fn new_with_config_for_tests( genesis_config: &GenesisConfig, account_indexes: AccountSecondaryIndexes, - accounts_db_caching_enabled: bool, + _accounts_db_caching_enabled: bool, shrink_ratio: AccountShrinkThreshold, ) -> Self { Self::new_with_paths_for_tests( @@ -1256,7 +1255,6 @@ impl Bank { Arc::::default(), Vec::new(), account_indexes, - accounts_db_caching_enabled, shrink_ratio, ) } @@ -1335,7 +1333,6 @@ impl Bank { runtime_config: Arc, paths: Vec, account_indexes: AccountSecondaryIndexes, - _accounts_db_caching_enabled: bool, shrink_ratio: AccountShrinkThreshold, ) -> Self { Self::new_with_paths( diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 474acf669b..df19b33ef9 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -3682,7 +3682,6 @@ mod tests { Arc::::default(), vec![accounts_dir.path().to_path_buf()], AccountSecondaryIndexes::default(), - false, AccountShrinkThreshold::default(), )); bank0