Merge pull request #1951 from terencechain/typos
Fix light client typos
This commit is contained in:
commit
1416836ee0
|
@ -559,7 +559,7 @@ def get_shard_committee(beacon_state: BeaconState, epoch: Epoch, shard: Shard) -
|
||||||
```python
|
```python
|
||||||
def get_light_client_committee(beacon_state: BeaconState, epoch: Epoch) -> Sequence[ValidatorIndex]:
|
def get_light_client_committee(beacon_state: BeaconState, epoch: Epoch) -> Sequence[ValidatorIndex]:
|
||||||
"""
|
"""
|
||||||
Return the light client committee of no more than ``TARGET_COMMITTEE_SIZE`` validators.
|
Return the light client committee of no more than ``LIGHT_CLIENT_COMMITTEE_SIZE`` validators.
|
||||||
"""
|
"""
|
||||||
source_epoch = compute_committee_source_epoch(epoch, LIGHT_CLIENT_COMMITTEE_PERIOD)
|
source_epoch = compute_committee_source_epoch(epoch, LIGHT_CLIENT_COMMITTEE_PERIOD)
|
||||||
active_validator_indices = get_active_validator_indices(beacon_state, source_epoch)
|
active_validator_indices = get_active_validator_indices(beacon_state, source_epoch)
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
- [`SignedAggregateAndProof`](#signedaggregateandproof)
|
- [`SignedAggregateAndProof`](#signedaggregateandproof)
|
||||||
- [Light client committee](#light-client-committee)
|
- [Light client committee](#light-client-committee)
|
||||||
- [Preparation](#preparation)
|
- [Preparation](#preparation)
|
||||||
- [Light clent vote](#light-clent-vote)
|
- [Light client vote](#light-client-vote)
|
||||||
- [Light client vote data](#light-client-vote-data)
|
- [Light client vote data](#light-client-vote-data)
|
||||||
- [`LightClientVoteData`](#lightclientvotedata)
|
- [`LightClientVoteData`](#lightclientvotedata)
|
||||||
- [Construct vote](#construct-vote)
|
- [Construct vote](#construct-vote)
|
||||||
|
@ -390,11 +390,11 @@ def is_in_next_light_client_committee(state: BeaconState, index: ValidatorIndex)
|
||||||
return index in next_committee
|
return index in next_committee
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Light clent vote
|
#### Light client vote
|
||||||
|
|
||||||
During a period of epochs that the validator is a part of the light client committee (`validator_index in get_light_client_committee(state, epoch)`), the validator creates and broadcasts a `LightClientVote` at each slot.
|
During a period of epochs that the validator is a part of the light client committee (`validator_index in get_light_client_committee(state, epoch)`), the validator creates and broadcasts a `LightClientVote` at each slot.
|
||||||
|
|
||||||
A validator should create and broadcast the `light_client_vote` to the `light_client_votes` pubsub topic when either (a) the validator has received a valid block from the expected block proposer for the current `slot` or (b) two-thirds of the `slot` have transpired (`SECONDS_PER_SLOT / 3` seconds after the start of `slot`) -- whichever comes _first_.
|
A validator should create and broadcast the `light_client_vote` to the `light_client_votes` pubsub topic when either (a) the validator has received a valid block from the expected block proposer for the current `slot` or (b) one-third of the `slot` have transpired (`SECONDS_PER_SLOT / 3` seconds after the start of `slot`) -- whichever comes _first_.
|
||||||
|
|
||||||
- Let `light_client_committee = get_light_client_committee(state, compute_epoch_at_slot(slot))`
|
- Let `light_client_committee = get_light_client_committee(state, compute_epoch_at_slot(slot))`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue