Apply suggestions from hwwhww code review

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
Danny Ryan 2021-06-07 07:56:52 -06:00 committed by GitHub
parent 48ecc98b75
commit 6f7e04ef5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ def run_process_participation_flag_updates(spec, state):
@with_altair_and_later
@spec_state_test
def test_zeroed(spec, state):
def test_all_zeroed(spec, state):
next_epoch_via_block(spec, state)
state.current_epoch_participation = [0] * len(state.validators)
state.previous_epoch_participation = [0] * len(state.validators)
@ -70,7 +70,7 @@ def test_random_genesis(spec, state):
@with_altair_and_later
@spec_state_test
def test_zeroing(spec, state):
def test_current_epoch_zeroed(spec, state):
next_epoch_via_block(spec, state)
random_flags(spec, state, 12, current=False)
state.current_epoch_participation = [0] * len(state.validators)
@ -79,7 +79,7 @@ def test_zeroing(spec, state):
@with_altair_and_later
@spec_state_test
def test_prev_zeroed(spec, state):
def test_previous_epoch_zeroed(spec, state):
next_epoch_via_block(spec, state)
random_flags(spec, state, 13, previous=False)
state.previous_epoch_participation = [0] * len(state.validators)

View File

@ -33,7 +33,7 @@ The provided pre-state is already transitioned to just before the specific sub-t
Sub-transitions:
- `justification_and_finalization`
- `inactivity_penalty_updates` (Altair)
- `inactivity_updates` (Altair)
- `rewards_and_penalties`
- `registry_updates`
- `slashings`