@@ -6,9 +6,6 @@ pub const DEFAULT_PERSISTENCE_THRESHOLD: u64 = 2;
66/// How close to the canonical head we persist blocks.
77pub const DEFAULT_MEMORY_BLOCK_BUFFER_TARGET : u64 = 0 ;
88
9- /// Default maximum concurrency for on-demand proof tasks (blinded nodes)
10- pub const DEFAULT_MAX_PROOF_TASK_CONCURRENCY : u64 = 256 ;
11-
129/// Minimum number of workers we allow configuring explicitly.
1310pub const MIN_WORKER_COUNT : usize = 32 ;
1411
@@ -102,8 +99,6 @@ pub struct TreeConfig {
10299 cross_block_cache_size : u64 ,
103100 /// Whether the host has enough parallelism to run state root task.
104101 has_enough_parallelism : bool ,
105- /// Maximum number of concurrent proof tasks
106- max_proof_task_concurrency : u64 ,
107102 /// Whether multiproof task should chunk proof targets.
108103 multiproof_chunking_enabled : bool ,
109104 /// Multiproof task chunk size for proof targets.
@@ -153,7 +148,6 @@ impl Default for TreeConfig {
153148 state_provider_metrics : false ,
154149 cross_block_cache_size : DEFAULT_CROSS_BLOCK_CACHE_SIZE ,
155150 has_enough_parallelism : has_enough_parallelism ( ) ,
156- max_proof_task_concurrency : DEFAULT_MAX_PROOF_TASK_CONCURRENCY ,
157151 multiproof_chunking_enabled : true ,
158152 multiproof_chunk_size : DEFAULT_MULTIPROOF_TASK_CHUNK_SIZE ,
159153 reserved_cpu_cores : DEFAULT_RESERVED_CPU_CORES ,
@@ -184,7 +178,6 @@ impl TreeConfig {
184178 state_provider_metrics : bool ,
185179 cross_block_cache_size : u64 ,
186180 has_enough_parallelism : bool ,
187- max_proof_task_concurrency : u64 ,
188181 multiproof_chunking_enabled : bool ,
189182 multiproof_chunk_size : usize ,
190183 reserved_cpu_cores : usize ,
@@ -196,7 +189,6 @@ impl TreeConfig {
196189 storage_worker_count : usize ,
197190 account_worker_count : usize ,
198191 ) -> Self {
199- assert ! ( max_proof_task_concurrency > 0 , "max_proof_task_concurrency must be at least 1" ) ;
200192 Self {
201193 persistence_threshold,
202194 memory_block_buffer_target,
@@ -210,7 +202,6 @@ impl TreeConfig {
210202 state_provider_metrics,
211203 cross_block_cache_size,
212204 has_enough_parallelism,
213- max_proof_task_concurrency,
214205 multiproof_chunking_enabled,
215206 multiproof_chunk_size,
216207 reserved_cpu_cores,
@@ -249,11 +240,6 @@ impl TreeConfig {
249240 self . max_execute_block_batch_size
250241 }
251242
252- /// Return the maximum proof task concurrency.
253- pub const fn max_proof_task_concurrency ( & self ) -> u64 {
254- self . max_proof_task_concurrency
255- }
256-
257243 /// Return whether the multiproof task chunking is enabled.
258244 pub const fn multiproof_chunking_enabled ( & self ) -> bool {
259245 self . multiproof_chunking_enabled
@@ -420,16 +406,6 @@ impl TreeConfig {
420406 self
421407 }
422408
423- /// Setter for maximum number of concurrent proof tasks.
424- pub const fn with_max_proof_task_concurrency (
425- mut self ,
426- max_proof_task_concurrency : u64 ,
427- ) -> Self {
428- assert ! ( max_proof_task_concurrency > 0 , "max_proof_task_concurrency must be at least 1" ) ;
429- self . max_proof_task_concurrency = max_proof_task_concurrency;
430- self
431- }
432-
433409 /// Setter for whether multiproof task should chunk proof targets.
434410 pub const fn with_multiproof_chunking_enabled (
435411 mut self ,
0 commit comments