remove bank_from_streams(caching_enabled) (#29235)

This commit is contained in:
Jeff Washington (jwash) 2022-12-13 09:49:33 -06:00 committed by GitHub
parent 356372b175
commit c8e7c706df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 7 deletions

View File

@ -311,7 +311,6 @@ pub(crate) fn bank_from_streams<R>(
debug_keys: Option<Arc<HashSet<Pubkey>>>,
additional_builtins: Option<&Builtins>,
account_secondary_indexes: AccountSecondaryIndexes,
caching_enabled: bool,
limit_load_slot_count_from_snapshot: Option<usize>,
shrink_ratio: AccountShrinkThreshold,
verify_index: bool,
@ -333,7 +332,7 @@ where
debug_keys,
additional_builtins,
account_secondary_indexes,
caching_enabled,
true, // caching_enabled
limit_load_slot_count_from_snapshot,
shrink_ratio,
verify_index,

View File

@ -392,7 +392,6 @@ fn test_bank_serialize_style(
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -544,7 +543,6 @@ fn test_extra_fields_eof() {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
@ -672,7 +670,6 @@ fn test_blank_extra_fields() {
None,
None,
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,

View File

@ -1797,7 +1797,6 @@ fn rebuild_bank_from_snapshots(
accounts_update_notifier: Option<AccountsUpdateNotifier>,
exit: &Arc<AtomicBool>,
) -> Result<Bank> {
let accounts_db_caching_enabled = true;
let (full_snapshot_version, full_snapshot_root_paths) =
verify_unpacked_snapshots_dir_and_version(
full_snapshot_unpacked_snapshots_dir_and_version,
@ -1840,7 +1839,6 @@ fn rebuild_bank_from_snapshots(
debug_keys,
additional_builtins,
account_secondary_indexes,
accounts_db_caching_enabled,
limit_load_slot_count_from_snapshot,
shrink_ratio,
verify_index,