From 5717a813938c69e4122d7bcfbfe410385f994546 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Wed, 27 Dec 2023 12:44:05 +0100 Subject: [PATCH] Capella addition --- specs/capella/light-client/sync-protocol.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/specs/capella/light-client/sync-protocol.md b/specs/capella/light-client/sync-protocol.md index 7c70ab11d..6a741a1de 100644 --- a/specs/capella/light-client/sync-protocol.md +++ b/specs/capella/light-client/sync-protocol.md @@ -33,6 +33,11 @@ Additional documents describes the impact of the upgrade on certain roles: | - | - | | `EXECUTION_PAYLOAD_INDEX` | `get_generalized_index(BeaconBlockBody, 'execution_payload')` (= 25) | +```python +class ExecutionBranch(Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)]): + pass +``` + ## Containers ### Modified `LightClientHeader` @@ -43,7 +48,7 @@ class LightClientHeader(Container): beacon: BeaconBlockHeader # Execution payload header corresponding to `beacon.body_root` (from Capella onward) execution: ExecutionPayloadHeader - execution_branch: Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)] + execution_branch: ExecutionBranch ``` ## Helper functions