mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-01 18:50:35 +00:00
Update sync_protocol.md
This commit is contained in:
parent
dbcce17769
commit
f1065faf9c
@ -61,10 +61,13 @@ class LightClientUpdate(container):
|
|||||||
committee_branch: Vector[Hash, PERSISTENT_COMMITTEE_ROOT_IN_BEACON_STATE_DEPTH + log_2(SHARD_COUNT)]
|
committee_branch: Vector[Hash, PERSISTENT_COMMITTEE_ROOT_IN_BEACON_STATE_DEPTH + log_2(SHARD_COUNT)]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Helpers
|
||||||
|
|
||||||
### `LightClientMemory`
|
### `LightClientMemory`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class LightClientMemory(object):
|
class LightClientMemory(object):
|
||||||
|
@dataclass
|
||||||
shard: Shard # Randomly initialized and retained forever
|
shard: Shard # Randomly initialized and retained forever
|
||||||
header: BeaconBlockHeader # Beacon header which is not expected to revert
|
header: BeaconBlockHeader # Beacon header which is not expected to revert
|
||||||
# Persistent committees corresponding to the beacon header
|
# Persistent committees corresponding to the beacon header
|
||||||
@ -73,8 +76,6 @@ class LightClientMemory(object):
|
|||||||
next_committee: CompactCommittee
|
next_committee: CompactCommittee
|
||||||
```
|
```
|
||||||
|
|
||||||
## Helpers
|
|
||||||
|
|
||||||
### `get_persistent_committee_pubkeys_and_balances`
|
### `get_persistent_committee_pubkeys_and_balances`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user