From 68b11ad4ad1c175e8f5e682707734427f18ff8fd Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Thu, 8 Apr 2021 20:14:34 +0600 Subject: [PATCH] Fix pre-condition checks in process_execution_payload --- specs/merge/beacon-chain.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/specs/merge/beacon-chain.md b/specs/merge/beacon-chain.md index 4e05c04ec..26ce63a08 100644 --- a/specs/merge/beacon-chain.md +++ b/specs/merge/beacon-chain.md @@ -185,11 +185,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody) -> None execution_payload = body.execution_payload - if not is_transition_completed(state): - assert execution_payload == ExecutionPayload() - return - - if not is_transition_block(state, body): + if is_transition_completed(state): assert execution_payload.parent_hash == state.latest_execution_payload_header.block_hash assert execution_payload.number == state.latest_execution_payload_header.number + 1