Skip to content

Commit

Permalink
remove caching_enabled from serde_snapshot (solana-labs#29246)
Browse files Browse the repository at this point in the history
* fix tests broken by add_root change

* remove caching_enabled from serde_snapshot
  • Loading branch information
jeffwashington authored and gnapoli23 committed Dec 16, 2022
1 parent 3f08e22 commit f78843b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions runtime/src/serde_snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ where
debug_keys,
additional_builtins,
account_secondary_indexes,
true, // caching_enabled
limit_load_slot_count_from_snapshot,
shrink_ratio,
verify_index,
Expand Down Expand Up @@ -522,7 +521,6 @@ fn reconstruct_bank_from_fields<E>(
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,
Expand All @@ -539,7 +537,6 @@ where
storage_and_next_append_vec_id,
genesis_config,
account_secondary_indexes,
caching_enabled,
limit_load_slot_count_from_snapshot,
shrink_ratio,
verify_index,
Expand Down Expand Up @@ -661,7 +658,6 @@ fn reconstruct_accountsdb_from_fields<E>(
storage_and_next_append_vec_id: StorageAndNextAppendVecId,
genesis_config: &GenesisConfig,
account_secondary_indexes: AccountSecondaryIndexes,
_caching_enabled: bool,
limit_load_slot_count_from_snapshot: Option<usize>,
shrink_ratio: AccountShrinkThreshold,
verify_index: bool,
Expand Down
1 change: 0 additions & 1 deletion runtime/src/serde_snapshot/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ where
..GenesisConfig::default()
},
AccountSecondaryIndexes::default(),
false,
None,
AccountShrinkThreshold::default(),
false,
Expand Down

0 comments on commit f78843b

Please sign in to comment.