Skip to content

Commit 2f3db22

Browse files
committed
fix linter
1 parent e482735 commit 2f3db22

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

tests/core/pyspec/eth2spec/test/deneb/block_processing/test_process_execution_payload.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_incorrect_blob_tx_type(spec, state):
122122
execution_payload.transactions = [opaque_tx]
123123
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
124124

125-
## Make the first block full in EIP-7732
125+
# Make the first block full in EIP-7732
126126
if is_post_eip7732(spec):
127127
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
128128

@@ -143,7 +143,7 @@ def test_incorrect_transaction_length_1_extra_byte(spec, state):
143143
execution_payload.transactions = [opaque_tx]
144144
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
145145

146-
## Make the first block full in EIP-7732
146+
# Make the first block full in EIP-7732
147147
if is_post_eip7732(spec):
148148
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
149149
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -163,7 +163,7 @@ def test_incorrect_transaction_length_1_byte_short(spec, state):
163163
execution_payload.transactions = [opaque_tx]
164164
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
165165

166-
## Make the first block full in EIP-7732
166+
# Make the first block full in EIP-7732
167167
if is_post_eip7732(spec):
168168
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
169169
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -183,7 +183,7 @@ def test_incorrect_transaction_length_empty(spec, state):
183183
execution_payload.transactions = [opaque_tx]
184184
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
185185

186-
## Make the first block full in EIP-7732
186+
# Make the first block full in EIP-7732
187187
if is_post_eip7732(spec):
188188
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
189189
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -203,8 +203,7 @@ def test_incorrect_transaction_length_32_extra_bytes(spec, state):
203203
execution_payload.transactions = [opaque_tx]
204204
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
205205

206-
207-
## Make the first block full in EIP-7732
206+
# Make the first block full in EIP-7732
208207
if is_post_eip7732(spec):
209208
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
210209
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -223,7 +222,7 @@ def test_no_transactions_with_commitments(spec, state):
223222
execution_payload.transactions = []
224223
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
225224

226-
## Make the first block full in EIP-7732
225+
# Make the first block full in EIP-7732
227226
if is_post_eip7732(spec):
228227
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
229228
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -243,7 +242,7 @@ def test_incorrect_commitment(spec, state):
243242
execution_payload.transactions = [opaque_tx]
244243
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
245244

246-
## Make the first block full in EIP-7732
245+
# Make the first block full in EIP-7732
247246
if is_post_eip7732(spec):
248247
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
249248
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -263,7 +262,7 @@ def test_incorrect_commitments_order(spec, state):
263262
execution_payload.transactions = [opaque_tx]
264263
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
265264

266-
## Make the first block full in EIP-7732
265+
# Make the first block full in EIP-7732
267266
if is_post_eip7732(spec):
268267
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
269268
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -280,7 +279,7 @@ def test_incorrect_block_hash(spec, state):
280279
execution_payload.block_hash = b'\x12' * 32 # incorrect block hash
281280

282281
# CL itself doesn't verify EL block hash
283-
## Make the first block full in EIP-7732
282+
# Make the first block full in EIP-7732
284283
if is_post_eip7732(spec):
285284
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
286285
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -300,7 +299,7 @@ def test_zeroed_commitment(spec, state):
300299
execution_payload.transactions = [opaque_tx]
301300
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
302301

303-
## Make the first block full in EIP-7732
302+
# Make the first block full in EIP-7732
304303
if is_post_eip7732(spec):
305304
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
306305
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments)
@@ -319,7 +318,7 @@ def test_invalid_correct_input__execution_invalid(spec, state):
319318
execution_payload.transactions = [opaque_tx]
320319
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
321320

322-
## Make the first block full in EIP-7732
321+
# Make the first block full in EIP-7732
323322
if is_post_eip7732(spec):
324323
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
325324
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments,
@@ -336,7 +335,7 @@ def test_invalid_exceed_max_blobs_per_block(spec, state):
336335
execution_payload.transactions = [opaque_tx]
337336
execution_payload.block_hash = compute_el_block_hash(spec, execution_payload, state)
338337

339-
## Make the first block full in EIP-7732
338+
# Make the first block full in EIP-7732
340339
if is_post_eip7732(spec):
341340
state.latest_execution_payload_header.block_hash = execution_payload.block_hash
342341
yield from run_execution_payload_processing(spec, state, execution_payload, blob_kzg_commitments, valid=False)

0 commit comments

Comments
 (0)