Add pre-merge path to the process_execution_payload

This commit is contained in:
Mikhail Kalinin 2021-04-09 15:36:45 +06:00
parent 68b11ad4ad
commit ffe7d6db6a
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody) -> None
Note: This function is designed to be able to be run in parallel with the other `process_block` sub-functions Note: This function is designed to be able to be run in parallel with the other `process_block` sub-functions
""" """
# Pre-merge, skip processing
if not is_transition_completed(state) and not is_transition_block(state, body):
return
execution_payload = body.execution_payload execution_payload = body.execution_payload
if is_transition_completed(state): if is_transition_completed(state):