PR feedback from Danny

Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Hsiao-Wei Wang 2020-06-04 00:42:08 +08:00 committed by GitHub
parent 68e934bf15
commit a685be3bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ def test_get_start_shard_next_slot(spec, state):
current_epoch_start_slot = spec.compute_start_slot_at_epoch(spec.get_current_epoch(state)) current_epoch_start_slot = spec.compute_start_slot_at_epoch(spec.get_current_epoch(state))
expected_start_shard = ( expected_start_shard = (
state.current_epoch_start_shard + state.current_epoch_start_shard
spec.get_committee_count_delta(state, start_slot=current_epoch_start_slot, stop_slot=slot) + spec.get_committee_count_delta(state, start_slot=current_epoch_start_slot, stop_slot=slot)
) % active_shard_count ) % active_shard_count
assert start_shard == expected_start_shard assert start_shard == expected_start_shard