Capella addition

This commit is contained in:
Etan Kissling 2023-12-27 12:44:05 +01:00
parent 316ea98792
commit 5717a81393
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 6 additions and 1 deletions

View File

@ -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