From 2297c09b7e457a13f7b2261a28cb45777be82f83 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 16 Feb 2024 09:26:13 +0800 Subject: [PATCH] Remove `higher_churn_limit_to_lower__without_block` --- .../test/deneb/transition/test_transition.py | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/deneb/transition/test_transition.py b/tests/core/pyspec/eth2spec/test/deneb/transition/test_transition.py index 04a419c13..b26cf6866 100644 --- a/tests/core/pyspec/eth2spec/test/deneb/transition/test_transition.py +++ b/tests/core/pyspec/eth2spec/test/deneb/transition/test_transition.py @@ -74,39 +74,3 @@ def test_higher_churn_limit_to_lower(state, fork_epoch, spec, post_spec, pre_tag churn_limit_1 = post_spec.get_validator_activation_churn_limit(state) assert churn_limit_1 == post_spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT assert churn_limit_1 < churn_limit_0 - - -@with_fork_metas([ForkMeta(pre_fork_name=pre, post_fork_name=post, fork_epoch=2) - for pre, post in AFTER_DENEB_PRE_POST_FORKS]) -@with_presets([MINIMAL], reason="churn limit update needs enough validators") -def test_higher_churn_limit_to_lower__without_block(state, fork_epoch, spec, post_spec, pre_tag, post_tag): - """ - Test if churn limit goes from high to low due to EIP-7514. - """ - # Create high churn limit - mock_activations = post_spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT * spec.config.CHURN_LIMIT_QUOTIENT - mock_activated_validators(spec, state, mock_activations) - - transition_until_fork(spec, state, fork_epoch) - - churn_limit_0 = spec.get_validator_churn_limit(state) - assert churn_limit_0 > post_spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT - - # check pre state - assert spec.get_current_epoch(state) < fork_epoch - - yield "pre", state - - # irregular state transition to handle fork - # set with_block=False here - state, _ = do_fork(state, spec, post_spec, fork_epoch, with_block=False) - - # check post state - assert spec.get_current_epoch(state) == fork_epoch - - yield "blocks", [] - yield "post", state - - churn_limit_1 = post_spec.get_validator_activation_churn_limit(state) - assert churn_limit_1 == post_spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT - assert churn_limit_1 < churn_limit_0