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
commit 86247d046c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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`