Fix test_process_execution_payload

This commit is contained in:
inphi 2022-10-24 16:25:50 -04:00
parent 0488c0c26e
commit 459310f744
No known key found for this signature in database
GPG Key ID: B61066A1A33F5D24
2 changed files with 5 additions and 5 deletions

View File

@ -111,9 +111,9 @@ def upgrade_to_eip4844(pre: capella.BeaconState) -> BeaconState:
# Execution-layer
latest_execution_payload_header=pre.latest_execution_payload_header,
# Withdrawals
withdrawal_queue=[],
next_withdrawal_index=WithdrawalIndex(0),
next_partial_withdrawal_validator_index=ValidatorIndex(0),
withdrawal_queue=pre.withdrawal_queue,
next_withdrawal_index=pre.next_withdrawal_index,
next_partial_withdrawal_validator_index=pre.next_partial_withdrawal_validator_index,
)
return post

View File

@ -14,7 +14,7 @@ from .helpers.constants import (
PHASE0, ALTAIR, BELLATRIX, CAPELLA, EIP4844, SHARDING,
MINIMAL, MAINNET,
ALL_PHASES, FORKS_BEFORE_ALTAIR, FORKS_BEFORE_BELLATRIX,
ALL_FORK_UPGRADES,
FORKS_BEFORE_CAPELLA, ALL_FORK_UPGRADES,
)
from .helpers.typing import SpecForkName, PresetBaseName
from .helpers.genesis import create_genesis_state
@ -596,7 +596,7 @@ def is_post_bellatrix(spec):
def is_post_capella(spec):
return spec.fork == CAPELLA
return spec.fork not in FORKS_BEFORE_CAPELLA
def is_post_eip4844(spec):