From 5c88de8bb917d3384c5b278ad656bbc37b02c80d Mon Sep 17 00:00:00 2001 From: Lucas Saldanha Date: Tue, 13 Aug 2024 17:50:31 +1200 Subject: [PATCH] Remove requests in execution_payload from full-node lightclient spec --- specs/electra/light-client/full-node.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/specs/electra/light-client/full-node.md b/specs/electra/light-client/full-node.md index 8bf340419..0393aaec2 100644 --- a/specs/electra/light-client/full-node.md +++ b/specs/electra/light-client/full-node.md @@ -26,14 +26,9 @@ Execution payload data is updated to account for the Electra upgrade. ```python def block_to_light_client_header(block: SignedBeaconBlock) -> LightClientHeader: epoch = compute_epoch_at_slot(block.message.slot) - - if epoch >= CAPELLA_FORK_EPOCH: - # [New in Electra:EIP6110:EIP7002:EIP7251:EIP????] - if epoch >= ELECTRA_FORK_EPOCH: - payload = block.message.body.execution_payload_envelope.execution_payload - else: - payload = block.message.body.execution_payload + if epoch >= CAPELLA_FORK_EPOCH: + payload = block.message.body.execution_payload execution_header = ExecutionPayloadHeader( parent_hash=payload.parent_hash, fee_recipient=payload.fee_recipient, @@ -55,13 +50,6 @@ def block_to_light_client_header(block: SignedBeaconBlock) -> LightClientHeader: execution_header.blob_gas_used = payload.blob_gas_used execution_header.excess_blob_gas = payload.excess_blob_gas - # [New in Electra:EIP6110:EIP7002:EIP7251:EIP????] - if epoch >= ELECTRA_FORK_EPOCH: - requests = block.message.body.execution_payload_envelope.requests - execution_header.deposit_requests_root = hash_tree_root(requests.deposit_requests) - execution_header.withdrawal_requests_root = hash_tree_root(requests.withdrawal_requests) - execution_header.consolidation_requests_root = hash_tree_root(requests.consolidation_requests) - execution_branch = ExecutionBranch( compute_merkle_proof(block.message.body, EXECUTION_PAYLOAD_GINDEX)) else: