mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 12:14:19 +00:00
remove extra return
This commit is contained in:
parent
d47f98a33f
commit
7365af59a7
@ -941,7 +941,7 @@ def get_beacon_proposer_index(state: BeaconState,
|
||||
Returns the beacon proposer index for the ``slot``.
|
||||
"""
|
||||
first_committee, _ = get_crosslink_committees_at_slot(state, slot)[0]
|
||||
return return first_committee[slot % len(first_committee)]
|
||||
return first_committee[slot % len(first_committee)]
|
||||
|
||||
```
|
||||
|
||||
|
@ -344,7 +344,7 @@ Either (2) or (3) occurs if (1) fails. The choice between (2) and (3) is determi
|
||||
|
||||
```python
|
||||
get_next_epoch_crosslink_committees(state: BeaconState,
|
||||
validator_index: ValidatorIndex) -> List[List[ValidatorIndex], ShardNumber]:
|
||||
validator_index: ValidatorIndex) -> List[Tuple[ValidatorIndex], ShardNumber]:
|
||||
current_epoch = get_current_epoch(state)
|
||||
next_epoch = current_epoch + 1
|
||||
next_epoch_start_slot = get_epoch_start_slot(next_epoch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user