fix committee start shard bug

This commit is contained in:
Danny Ryan 2019-02-27 11:27:23 -07:00
parent ba81d5287d
commit e2f4e32332
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -1978,8 +1978,8 @@ def update_validator_registry(state: BeaconState) -> None:
and perform the following updates:
* Set `state.current_shuffling_epoch = next_epoch`
* Set `state.current_shuffling_start_shard = (state.current_shuffling_start_shard + get_current_epoch_committee_count(state)) % SHARD_COUNT`
* Set `state.current_shuffling_epoch = next_epoch`
* Set `state.current_shuffling_seed = generate_seed(state, state.current_shuffling_epoch)`
If a validator registry update does _not_ happen do the following: