delete new proposer function

This commit is contained in:
Danny Ryan 2019-01-29 17:23:24 -08:00
parent f701b959f3
commit 75d1247884
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 12 deletions

View File

@ -931,17 +931,6 @@ def generate_seed(state: BeaconState,
)
```
### `get_beacon_proposer_from_committee`
```python
def get_beacon_proposer_index(committee: List[ValidatorIndex],
slot: SlotNumber) -> ValidatorIndex:
"""
Returns the beacon proposer index of the ``committee`` at the ``slot``.
"""
return first_committee[slot % len(committee)]
```
### `get_beacon_proposer_index`
```python
@ -951,7 +940,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 get_beacon_proposer_from_committee(first_committee, slot)
return return first_committee[slot % len(first_committee)]
```