Skip to content

Commit

Permalink
Merge pull request #821 from ethereum/fix-mod
Browse files Browse the repository at this point in the history
fix shuffling shard mod bug
  • Loading branch information
djrtwo committed Mar 21, 2019
2 parents 99455fc + 3e70478 commit 729757d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -2134,8 +2134,8 @@ def update_registry_and_shuffling_data(state: BeaconState) -> None:
state.current_shuffling_epoch = next_epoch
state.current_shuffling_start_shard = (
state.current_shuffling_start_shard +
get_current_epoch_committee_count(state) % SHARD_COUNT
)
get_current_epoch_committee_count(state)
) % SHARD_COUNT
state.current_shuffling_seed = generate_seed(state, state.current_shuffling_epoch)
else:
# If processing at least one crosslink keeps failing, then reshuffle every power of two,
Expand Down

0 comments on commit 729757d

Please sign in to comment.