diff --git a/core/src/validator.rs b/core/src/validator.rs index 895841442..c1f6655ae 100644 --- a/core/src/validator.rs +++ b/core/src/validator.rs @@ -635,7 +635,6 @@ impl Validator { snapshot_request_handler, pruned_banks_request_handler, }, - true, // caching_enabled config.accounts_db_test_hash_calculation, last_full_snapshot_slot, ); diff --git a/core/tests/epoch_accounts_hash.rs b/core/tests/epoch_accounts_hash.rs index 39dbebd71..958c1a023 100755 --- a/core/tests/epoch_accounts_hash.rs +++ b/core/tests/epoch_accounts_hash.rs @@ -221,7 +221,6 @@ impl BackgroundServices { snapshot_request_handler, pruned_banks_request_handler, }, - true, false, None, ); diff --git a/core/tests/snapshots.rs b/core/tests/snapshots.rs index fe61cdfed..f9081d585 100644 --- a/core/tests/snapshots.rs +++ b/core/tests/snapshots.rs @@ -1040,14 +1040,8 @@ fn test_snapshots_with_background_services( snapshot_test_config.snapshot_config.clone(), ); - let accounts_background_service = AccountsBackgroundService::new( - bank_forks.clone(), - &exit, - abs_request_handler, - true, - false, - None, - ); + let accounts_background_service = + AccountsBackgroundService::new(bank_forks.clone(), &exit, abs_request_handler, false, None); let mut last_full_snapshot_slot = None; let mut last_incremental_snapshot_slot = None; diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index d14afb738..b2243d9d0 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -1156,7 +1156,6 @@ fn load_bank_forks( bank_forks.clone(), &exit, abs_request_handler, - true, process_options.accounts_db_test_hash_calculation, None, ); diff --git a/runtime/src/accounts_background_service.rs b/runtime/src/accounts_background_service.rs index fee526e99..2ec48f212 100644 --- a/runtime/src/accounts_background_service.rs +++ b/runtime/src/accounts_background_service.rs @@ -539,10 +539,10 @@ impl AccountsBackgroundService { bank_forks: Arc>, exit: &Arc, request_handlers: AbsRequestHandlers, - accounts_db_caching_enabled: bool, test_hash_calculation: bool, mut last_full_snapshot_slot: Option, ) -> Self { + let accounts_db_caching_enabled = true; info!("AccountsBackgroundService active"); let exit = exit.clone(); let mut consumed_budget = 0;