@@ -2,15 +2,6 @@ class BlockValidator
22 attr_reader :errors , :stats
33
44 def initialize
5- # Initialize thread pool for storage verification
6- storage_threads = ENV . fetch ( 'STORAGE_VERIFICATION_THREADS' , '2' ) . to_i
7- @storage_executor = Concurrent ::ThreadPoolExecutor . new (
8- min_threads : 1 ,
9- max_threads : storage_threads ,
10- max_queue : storage_threads * 3 ,
11- fallback_policy : :caller_runs
12- )
13-
145 # Initialize validation state
156 reset_validation_state
167 end
@@ -330,16 +321,11 @@ def binary_equal?(val1, val2)
330321 def verify_storage_state ( expected_data , l1_block_num , block_tag )
331322 ImportProfiler . start ( "storage_verification" )
332323
333- # Parallel verification using thread pool
334- creation_promises = Array ( expected_data [ :creations ] ) . map do |creation |
335- Concurrent ::Promise . execute ( executor : @storage_executor ) do
336- verify_ethscription_storage ( creation , l1_block_num , block_tag )
337- end
324+ # Sequentially verify each creation on the main thread
325+ Array ( expected_data [ :creations ] ) . each do |creation |
326+ verify_ethscription_storage ( creation , l1_block_num , block_tag )
338327 end
339328
340- # Wait for all creation verifications to complete
341- creation_promises . each ( &:value! )
342-
343329 # Verify ownership after transfers
344330 verify_transfer_ownership ( Array ( expected_data [ :transfers ] ) , block_tag )
345331
0 commit comments