From ffe7d6db6a4d15a355ef9b5d6072d440c2786fac Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Fri, 9 Apr 2021 15:36:45 +0600 Subject: [PATCH] Add pre-merge path to the process_execution_payload --- specs/merge/beacon-chain.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specs/merge/beacon-chain.md b/specs/merge/beacon-chain.md index 26ce63a08..fbdab682e 100644 --- a/specs/merge/beacon-chain.md +++ b/specs/merge/beacon-chain.md @@ -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 """ + # Pre-merge, skip processing + if not is_transition_completed(state) and not is_transition_block(state, body): + return + execution_payload = body.execution_payload if is_transition_completed(state):