Merge pull request #733 from ethereum/JustinDrake-patch-1
Fair proposer sampling
This commit is contained in:
commit
86247d046c
|
@ -1015,7 +1015,7 @@ def get_beacon_proposer_index(state: BeaconState,
|
||||||
assert previous_epoch <= epoch <= next_epoch
|
assert previous_epoch <= epoch <= next_epoch
|
||||||
|
|
||||||
first_committee, _ = get_crosslink_committees_at_slot(state, slot, registry_change)[0]
|
first_committee, _ = get_crosslink_committees_at_slot(state, slot, registry_change)[0]
|
||||||
return first_committee[slot % len(first_committee)]
|
return first_committee[epoch % len(first_committee)]
|
||||||
```
|
```
|
||||||
|
|
||||||
### `verify_merkle_branch`
|
### `verify_merkle_branch`
|
||||||
|
|
Loading…
Reference in New Issue