mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 09:35:00 -05:00
Merge pull request #733 from ethereum/JustinDrake-patch-1
Fair proposer sampling
This commit is contained in:
@@ -1015,7 +1015,7 @@ def get_beacon_proposer_index(state: BeaconState,
|
||||
assert previous_epoch <= epoch <= next_epoch
|
||||
|
||||
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`
|
||||
|
||||
Reference in New Issue
Block a user