fix shard delta for latest shard change

This commit is contained in:
Danny Ryan 2019-04-11 18:48:05 +10:00
parent b6158e080a
commit 9c662ec4c3
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -2083,7 +2083,7 @@ def update_registry(state: BeaconState) -> None:
update_validator_registry(state)
state.latest_start_shard = (
state.latest_start_shard +
get_epoch_committee_count(state, get_current_epoch(state))
get_shard_delta(state, get_current_epoch(state))
) % SHARD_COUNT
```