Update sync_protocol.md

This commit is contained in:
terence tsao 2019-09-05 06:54:20 -07:00 committed by GitHub
parent dbcce17769
commit f1065faf9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -61,10 +61,13 @@ class LightClientUpdate(container):
committee_branch: Vector[Hash, PERSISTENT_COMMITTEE_ROOT_IN_BEACON_STATE_DEPTH + log_2(SHARD_COUNT)]
```
## Helpers
### `LightClientMemory`
```python
class LightClientMemory(object):
@dataclass
shard: Shard # Randomly initialized and retained forever
header: BeaconBlockHeader # Beacon header which is not expected to revert
# Persistent committees corresponding to the beacon header
@ -73,8 +76,6 @@ class LightClientMemory(object):
next_committee: CompactCommittee
```
## Helpers
### `get_persistent_committee_pubkeys_and_balances`
```python