Lint fixes for merge testing update

This commit is contained in:
protolambda 2021-05-05 17:03:29 +02:00
parent 2ef6291cbc
commit 56bcb630db
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
5 changed files with 4 additions and 9 deletions

View File

@ -9,7 +9,6 @@ from eth2spec.test.helpers.state import (
transition_to,
)
from eth2spec.test.helpers.constants import (
PHASE0,
MAINNET, MINIMAL,
)
from eth2spec.test.helpers.sync_committee import (

View File

@ -8,10 +8,7 @@ from eth2spec.test.context import (
single_phase,
misc_balances,
)
from eth2spec.test.helpers.constants import (
PHASE0,
MINIMAL,
)
from eth2spec.test.helpers.constants import MINIMAL
from eth2spec.test.helpers.state import transition_to
from eth2spec.test.helpers.epoch_processing import (
run_epoch_processing_with,

View File

@ -7,7 +7,6 @@ from eth2spec.test.helpers.state import transition_to
from eth2spec.utils import bls
from eth2spec.utils.bls import only_with_bls
from eth2spec.test.context import (
PHASE0,
with_altair_and_later,
with_state,
)

View File

@ -16,7 +16,7 @@ def build_empty_execution_payload(spec, state):
gas_limit=latest.gas_limit, # retain same limit
gas_used=0, # empty block, 0 gas
timestamp=timestamp,
receipt_root=b"no receipts here" + b"\x00"*16, # TODO: root of empty MPT may be better.
receipt_root=b"no receipts here" + b"\x00" * 16, # TODO: root of empty MPT may be better.
logs_bloom=spec.ByteVector[spec.BYTES_PER_LOGS_BLOOM](), # TODO: zeroed logs bloom for empty logs ok?
transactions=empty_txs,
)

View File

@ -1,7 +1,8 @@
from eth2spec.test.helpers.execution_payload import build_empty_execution_payload
from eth2spec.test.context import spec_state_test, expect_assertion_error, always_bls, with_merge_and_later
from eth2spec.test.context import spec_state_test, expect_assertion_error, with_merge_and_later
from eth2spec.test.helpers.state import next_slot
def run_execution_payload_processing(spec, state, execution_payload, valid=True, execution_valid=True):
"""
Run ``process_execution_payload``, yielding:
@ -37,4 +38,3 @@ def test_success_first_payload(spec, state):
execution_payload = build_empty_execution_payload(spec, state)
yield from run_execution_payload_processing(spec, state, execution_payload)