|
7 | 7 | - [Constants](#constants) |
8 | 8 | - [Containers](#containers) |
9 | 9 | - [Modified `LightClientHeader`](#modified-lightclientheader) |
| 10 | + - [Modified `LightClientBootstrap`](#modified-lightclientbootstrap) |
| 11 | + - [Modified `LightClientUpdate`](#modified-lightclientupdate) |
| 12 | + - [Modified `LightClientFinalityUpdate`](#modified-lightclientfinalityupdate) |
| 13 | + - [Modified `LightClientOptimisticUpdate`](#modified-lightclientoptimisticupdate) |
| 14 | + - [Modified `LightClientStore`](#modified-lightclientstore) |
10 | 15 | - [Helper functions](#helper-functions) |
11 | 16 | - [`get_lc_execution_root`](#get_lc_execution_root) |
12 | 17 | - [Modified `is_valid_light_client_header`](#modified-is_valid_light_client_header) |
@@ -44,13 +49,78 @@ Additional documents describes the impact of the upgrade on certain roles: |
44 | 49 |
|
45 | 50 | ```python |
46 | 51 | class LightClientHeader(Container): |
47 | | - # Beacon block header |
48 | 52 | beacon: BeaconBlockHeader |
49 | | - # Execution payload header corresponding to `beacon.body_root` (from Capella onward) |
| 53 | + # [New in Capella] |
50 | 54 | execution: ExecutionPayloadHeader |
| 55 | + # [New in Capella] |
51 | 56 | execution_branch: ExecutionBranch |
52 | 57 | ``` |
53 | 58 |
|
| 59 | +### Modified `LightClientBootstrap` |
| 60 | + |
| 61 | +```python |
| 62 | +class LightClientBootstrap(Container): |
| 63 | + # [Modified in Capella] |
| 64 | + header: LightClientHeader |
| 65 | + current_sync_committee: SyncCommittee |
| 66 | + current_sync_committee_branch: CurrentSyncCommitteeBranch |
| 67 | +``` |
| 68 | + |
| 69 | +### Modified `LightClientUpdate` |
| 70 | + |
| 71 | +```python |
| 72 | +class LightClientUpdate(Container): |
| 73 | + # [Modified in Capella] |
| 74 | + attested_header: LightClientHeader |
| 75 | + next_sync_committee: SyncCommittee |
| 76 | + next_sync_committee_branch: NextSyncCommitteeBranch |
| 77 | + # [Modified in Capella] |
| 78 | + finalized_header: LightClientHeader |
| 79 | + finality_branch: FinalityBranch |
| 80 | + sync_aggregate: SyncAggregate |
| 81 | + signature_slot: Slot |
| 82 | +``` |
| 83 | + |
| 84 | +### Modified `LightClientFinalityUpdate` |
| 85 | + |
| 86 | +```python |
| 87 | +class LightClientFinalityUpdate(Container): |
| 88 | + # [Modified in Capella] |
| 89 | + attested_header: LightClientHeader |
| 90 | + # [Modified in Capella] |
| 91 | + finalized_header: LightClientHeader |
| 92 | + finality_branch: FinalityBranch |
| 93 | + sync_aggregate: SyncAggregate |
| 94 | + signature_slot: Slot |
| 95 | +``` |
| 96 | + |
| 97 | +### Modified `LightClientOptimisticUpdate` |
| 98 | + |
| 99 | +```python |
| 100 | +class LightClientOptimisticUpdate(Container): |
| 101 | + # [Modified in Capella] |
| 102 | + attested_header: LightClientHeader |
| 103 | + sync_aggregate: SyncAggregate |
| 104 | + signature_slot: Slot |
| 105 | +``` |
| 106 | + |
| 107 | +### Modified `LightClientStore` |
| 108 | + |
| 109 | +```python |
| 110 | +@dataclass |
| 111 | +class LightClientStore(object): |
| 112 | + # [Modified in Capella] |
| 113 | + finalized_header: LightClientHeader |
| 114 | + current_sync_committee: SyncCommittee |
| 115 | + next_sync_committee: SyncCommittee |
| 116 | + # [Modified in Capella] |
| 117 | + best_valid_update: Optional[LightClientUpdate] |
| 118 | + # [Modified in Capella] |
| 119 | + optimistic_header: LightClientHeader |
| 120 | + previous_max_active_participants: uint64 |
| 121 | + current_max_active_participants: uint64 |
| 122 | +``` |
| 123 | + |
54 | 124 | ## Helper functions |
55 | 125 |
|
56 | 126 | ### `get_lc_execution_root` |
|
0 commit comments