Merge pull request #733 from ethereum/JustinDrake-patch-1

Fair proposer sampling
This commit is contained in:
Danny Ryan
2019-03-12 11:51:47 -06:00
committed by GitHub

View File

@@ -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`