mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-21 14:58:12 +00:00
Apply suggestions from hwwhww code review
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
parent
48ecc98b75
commit
6f7e04ef5c
@ -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)
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user