From 45ba5ef6fd1c23a9a64fc1d50344aaa26163c4fe Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 9 Dec 2022 12:45:21 -0600 Subject: [PATCH] remove bank_from_snapshot_archives caching_enabled (#29171) --- core/tests/epoch_accounts_hash.rs | 1 - core/tests/snapshots.rs | 1 - runtime/src/serde_snapshot/tests.rs | 1 - runtime/src/snapshot_utils.rs | 11 ++--------- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/tests/epoch_accounts_hash.rs b/core/tests/epoch_accounts_hash.rs index d6cd959e80..36a5c7fc68 100755 --- a/core/tests/epoch_accounts_hash.rs +++ b/core/tests/epoch_accounts_hash.rs @@ -453,7 +453,6 @@ fn test_snapshots_have_expected_epoch_accounts_hash() { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), true, diff --git a/core/tests/snapshots.rs b/core/tests/snapshots.rs index b0f05c002e..363560678f 100644 --- a/core/tests/snapshots.rs +++ b/core/tests/snapshots.rs @@ -172,7 +172,6 @@ fn restore_from_snapshot( None, None, AccountSecondaryIndexes::default(), - false, None, accounts_db::AccountShrinkThreshold::default(), check_hash_calculation, diff --git a/runtime/src/serde_snapshot/tests.rs b/runtime/src/serde_snapshot/tests.rs index 416cac7eb0..4f65f01172 100644 --- a/runtime/src/serde_snapshot/tests.rs +++ b/runtime/src/serde_snapshot/tests.rs @@ -609,7 +609,6 @@ fn test_extra_fields_full_snapshot_archive() { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false, diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 6734e6b540..404387bd08 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -959,7 +959,6 @@ pub fn bank_from_snapshot_archives( debug_keys: Option>>, additional_builtins: Option<&Builtins>, account_secondary_indexes: AccountSecondaryIndexes, - accounts_db_caching_enabled: bool, limit_load_slot_count_from_snapshot: Option, shrink_ratio: AccountShrinkThreshold, test_hash_calculation: bool, @@ -1004,7 +1003,7 @@ pub fn bank_from_snapshot_archives( debug_keys, additional_builtins, account_secondary_indexes, - accounts_db_caching_enabled, + true, // caching_enabled limit_load_slot_count_from_snapshot, shrink_ratio, verify_index, @@ -1063,7 +1062,7 @@ pub fn bank_from_latest_snapshot_archives( debug_keys: Option>>, additional_builtins: Option<&Builtins>, account_secondary_indexes: AccountSecondaryIndexes, - accounts_db_caching_enabled: bool, + _accounts_db_caching_enabled: bool, limit_load_slot_count_from_snapshot: Option, shrink_ratio: AccountShrinkThreshold, test_hash_calculation: bool, @@ -1108,7 +1107,6 @@ pub fn bank_from_latest_snapshot_archives( debug_keys, additional_builtins, account_secondary_indexes, - accounts_db_caching_enabled, limit_load_slot_count_from_snapshot, shrink_ratio, test_hash_calculation, @@ -3261,7 +3259,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false, @@ -3374,7 +3371,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false, @@ -3507,7 +3503,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false, @@ -3771,7 +3766,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false, @@ -3836,7 +3830,6 @@ mod tests { None, None, AccountSecondaryIndexes::default(), - false, None, AccountShrinkThreshold::default(), false,