Add `test_fork_pre_activation` test case

This commit is contained in:
Hsiao-Wei Wang 2024-05-13 15:37:32 +03:00
parent 01a2c7ba07
commit 8b264704aa
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
1 changed files with 12 additions and 0 deletions

View File

@ -82,6 +82,18 @@ def test_fork_random_large_validator_set(spec, phases, state):
yield from run_fork_test(phases[ELECTRA], state) yield from run_fork_test(phases[ELECTRA], state)
@with_phases(phases=[DENEB], other_phases=[ELECTRA])
@spec_test
@with_state
@with_meta_tags(ELECTRA_FORK_TEST_META_TAGS)
def test_fork_pre_activation(spec, phases, state):
post_spec = phases[ELECTRA]
state.validators[0].activation_epoch = spec.FAR_FUTURE_EPOCH
post_state = yield from run_fork_test(post_spec, state)
assert len(post_state.pending_balance_deposits) > 0
@with_phases(phases=[DENEB], other_phases=[ELECTRA]) @with_phases(phases=[DENEB], other_phases=[ELECTRA])
@spec_test @spec_test
@with_state @with_state