@@ -92,8 +92,8 @@ pub struct TreeConfig {
9292 /// Whether to always compare trie updates from the state root task to the trie updates from
9393 /// the regular state root calculation.
9494 always_compare_trie_updates : bool ,
95- /// Whether to disable cross-block caching and parallel prewarming.
96- disable_caching_and_prewarming : bool ,
95+ /// Whether to disable parallel prewarming.
96+ disable_prewarming : bool ,
9797 /// Whether to disable the parallel sparse trie state root algorithm.
9898 disable_parallel_sparse_trie : bool ,
9999 /// Whether to enable state provider metrics.
@@ -148,7 +148,7 @@ impl Default for TreeConfig {
148148 max_execute_block_batch_size : DEFAULT_MAX_EXECUTE_BLOCK_BATCH_SIZE ,
149149 legacy_state_root : false ,
150150 always_compare_trie_updates : false ,
151- disable_caching_and_prewarming : false ,
151+ disable_prewarming : false ,
152152 disable_parallel_sparse_trie : false ,
153153 state_provider_metrics : false ,
154154 cross_block_cache_size : DEFAULT_CROSS_BLOCK_CACHE_SIZE ,
@@ -179,7 +179,7 @@ impl TreeConfig {
179179 max_execute_block_batch_size : usize ,
180180 legacy_state_root : bool ,
181181 always_compare_trie_updates : bool ,
182- disable_caching_and_prewarming : bool ,
182+ disable_prewarming : bool ,
183183 disable_parallel_sparse_trie : bool ,
184184 state_provider_metrics : bool ,
185185 cross_block_cache_size : u64 ,
@@ -205,7 +205,7 @@ impl TreeConfig {
205205 max_execute_block_batch_size,
206206 legacy_state_root,
207207 always_compare_trie_updates,
208- disable_caching_and_prewarming ,
208+ disable_prewarming ,
209209 disable_parallel_sparse_trie,
210210 state_provider_metrics,
211211 cross_block_cache_size,
@@ -285,9 +285,9 @@ impl TreeConfig {
285285 self . disable_parallel_sparse_trie
286286 }
287287
288- /// Returns whether or not cross-block caching and parallel prewarming should be used.
289- pub const fn disable_caching_and_prewarming ( & self ) -> bool {
290- self . disable_caching_and_prewarming
288+ /// Returns whether or not parallel prewarming should be used.
289+ pub const fn disable_prewarming ( & self ) -> bool {
290+ self . disable_prewarming
291291 }
292292
293293 /// Returns whether to always compare trie updates from the state root task to the trie updates
@@ -377,12 +377,9 @@ impl TreeConfig {
377377 self
378378 }
379379
380- /// Setter for whether to disable cross-block caching and parallel prewarming.
381- pub const fn without_caching_and_prewarming (
382- mut self ,
383- disable_caching_and_prewarming : bool ,
384- ) -> Self {
385- self . disable_caching_and_prewarming = disable_caching_and_prewarming;
380+ /// Setter for whether to disable parallel prewarming.
381+ pub const fn without_prewarming ( mut self , disable_prewarming : bool ) -> Self {
382+ self . disable_prewarming = disable_prewarming;
386383 self
387384 }
388385
0 commit comments