mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 12:14:19 +00:00
Fix typo
This commit is contained in:
parent
b2c53045fc
commit
34091d70ec
@ -55,6 +55,7 @@
|
|||||||
- [Helper functions](#helper-functions)
|
- [Helper functions](#helper-functions)
|
||||||
- [`hash`](#hash)
|
- [`hash`](#hash)
|
||||||
- [`hash_tree_root`](#hash_tree_root)
|
- [`hash_tree_root`](#hash_tree_root)
|
||||||
|
- [`signed_root`](#signed_root)
|
||||||
- [`slot_to_epoch`](#slot_to_epoch)
|
- [`slot_to_epoch`](#slot_to_epoch)
|
||||||
- [`get_previous_epoch`](#get_previous_epoch)
|
- [`get_previous_epoch`](#get_previous_epoch)
|
||||||
- [`get_current_epoch`](#get_current_epoch)
|
- [`get_current_epoch`](#get_current_epoch)
|
||||||
@ -968,7 +969,7 @@ def generate_seed(state: BeaconState,
|
|||||||
```python
|
```python
|
||||||
def get_beacon_proposer_index(state: BeaconState,
|
def get_beacon_proposer_index(state: BeaconState,
|
||||||
slot: Slot,
|
slot: Slot,
|
||||||
registry_change: bool=False)) -> ValidatorIndex:
|
registry_change: bool=False) -> ValidatorIndex:
|
||||||
"""
|
"""
|
||||||
Return the beacon proposer index for the ``slot``.
|
Return the beacon proposer index for the ``slot``.
|
||||||
"""
|
"""
|
||||||
|
@ -50,7 +50,7 @@ __NOTICE__: This document is a work-in-progress for researchers and implementers
|
|||||||
- [Aggregation bitfield](#aggregation-bitfield)
|
- [Aggregation bitfield](#aggregation-bitfield)
|
||||||
- [Custody bitfield](#custody-bitfield)
|
- [Custody bitfield](#custody-bitfield)
|
||||||
- [Aggregate signature](#aggregate-signature)
|
- [Aggregate signature](#aggregate-signature)
|
||||||
- [Validator assigments](#validator-assignments)
|
- [Validator assignments](#validator-assignments)
|
||||||
- [Lookahead](#lookahead)
|
- [Lookahead](#lookahead)
|
||||||
- [How to avoid slashing](#how-to-avoid-slashing)
|
- [How to avoid slashing](#how-to-avoid-slashing)
|
||||||
- [Proposer slashing](#proposer-slashing)
|
- [Proposer slashing](#proposer-slashing)
|
||||||
@ -371,7 +371,7 @@ def get_committee_assignment(
|
|||||||
if len(selected_committees) > 0:
|
if len(selected_committees) > 0:
|
||||||
validators = selected_committees[0][0]
|
validators = selected_committees[0][0]
|
||||||
shard = selected_committees[0][1]
|
shard = selected_committees[0][1]
|
||||||
is_proposer = validator_index == get_beacon_proposer_index(state, slot, registry_change)
|
is_proposer = validator_index == get_beacon_proposer_index(state, slot, registry_change=registry_change)
|
||||||
|
|
||||||
assignment = (validators, shard, slot, is_proposer)
|
assignment = (validators, shard, slot, is_proposer)
|
||||||
return assignment
|
return assignment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user