@@ -78,7 +78,7 @@ def test_incorrect_blob_tx_type(spec, state):
7878 opaque_tx = b'\x04 ' + opaque_tx [1 :] # incorrect tx type
7979
8080 execution_payload .transactions = [opaque_tx ]
81- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
81+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
8282
8383 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
8484
@@ -95,7 +95,7 @@ def test_incorrect_transaction_length_1_extra_byte(spec, state):
9595 opaque_tx = opaque_tx + b'\x12 ' # incorrect tx length, longer
9696
9797 execution_payload .transactions = [opaque_tx ]
98- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
98+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
9999
100100 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
101101
@@ -112,7 +112,7 @@ def test_incorrect_transaction_length_1_byte_short(spec, state):
112112 opaque_tx = opaque_tx [:- 1 ] # incorrect tx length, shorter
113113
114114 execution_payload .transactions = [opaque_tx ]
115- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
115+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
116116
117117 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
118118
@@ -129,7 +129,7 @@ def test_incorrect_transaction_length_empty(spec, state):
129129 opaque_tx = opaque_tx [0 :0 ] # incorrect tx length, empty
130130
131131 execution_payload .transactions = [opaque_tx ]
132- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
132+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
133133
134134 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
135135
@@ -146,7 +146,7 @@ def test_incorrect_transaction_length_32_extra_bytes(spec, state):
146146 opaque_tx = opaque_tx + b'\x12 ' * 32 # incorrect tx length
147147
148148 execution_payload .transactions = [opaque_tx ]
149- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
149+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
150150
151151 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
152152
@@ -162,7 +162,7 @@ def test_no_transactions_with_commitments(spec, state):
162162 _ , _ , blob_kzg_commitments , _ = get_sample_opaque_tx (spec )
163163
164164 execution_payload .transactions = []
165- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
165+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
166166
167167 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
168168
@@ -179,7 +179,7 @@ def test_incorrect_commitment(spec, state):
179179 blob_kzg_commitments [0 ] = b'\x12 ' * 48 # incorrect commitment
180180
181181 execution_payload .transactions = [opaque_tx ]
182- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
182+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
183183
184184 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
185185
@@ -196,7 +196,7 @@ def test_incorrect_commitments_order(spec, state):
196196 blob_kzg_commitments = [blob_kzg_commitments [1 ], blob_kzg_commitments [0 ]] # incorrect order
197197
198198 execution_payload .transactions = [opaque_tx ]
199- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
199+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
200200
201201 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
202202
@@ -227,7 +227,7 @@ def test_zeroed_commitment(spec, state):
227227 assert all (commitment == b'\x00 ' * 48 for commitment in blob_kzg_commitments )
228228
229229 execution_payload .transactions = [opaque_tx ]
230- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
230+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
231231
232232 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments )
233233
@@ -243,7 +243,7 @@ def test_invalid_correct_input__execution_invalid(spec, state):
243243 opaque_tx , _ , blob_kzg_commitments , _ = get_sample_opaque_tx (spec )
244244
245245 execution_payload .transactions = [opaque_tx ]
246- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
246+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
247247
248248 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments ,
249249 valid = False , execution_valid = False )
@@ -257,6 +257,6 @@ def test_invalid_exceed_max_blobs_per_block(spec, state):
257257 opaque_tx , _ , blob_kzg_commitments , _ = get_sample_opaque_tx (spec , blob_count = spec .MAX_BLOBS_PER_BLOCK + 1 )
258258
259259 execution_payload .transactions = [opaque_tx ]
260- execution_payload .block_hash = compute_el_block_hash (spec , execution_payload )
260+ execution_payload .block_hash = compute_el_block_hash (spec , execution_payload , state )
261261
262262 yield from run_execution_payload_processing (spec , state , execution_payload , blob_kzg_commitments , valid = False )
0 commit comments