diff --git a/AGENTS.md b/AGENTS.md index d68a084fcb..866641d623 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -381,7 +381,6 @@ When writing tests, use these decorators: - `@with_electra_and_later` - Run on Electra and all subsequent forks - `@spec_state_test` - State transition test - `@spec_test` - General spec test -- `@always_bls` - Always enable BLS verification ### Test pattern diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate.py b/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate.py index c39e969d16..79cebc1c60 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate.py @@ -1,7 +1,6 @@ import random from eth_consensus_specs.test.context import ( - always_bls, default_activation_threshold, default_balances_electra, single_phase, @@ -36,7 +35,6 @@ @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_bad_domain(spec, state): committee_indices = compute_committee_indices(state) @@ -57,7 +55,6 @@ def test_invalid_signature_bad_domain(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_missing_participant(spec, state): committee_indices = compute_committee_indices(state) rng = random.Random(2020) @@ -80,7 +77,6 @@ def test_invalid_signature_missing_participant(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_no_participants(spec, state): block = build_empty_block_for_next_slot(spec, state) # No participants is an allowed case, but needs a specific signature, not the full-zeroed signature. @@ -96,7 +92,6 @@ def test_invalid_signature_no_participants(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_infinite_signature_with_all_participants(spec, state): block = build_empty_block_for_next_slot(spec, state) # Include all participants, try the special-case signature for no-participants @@ -109,7 +104,6 @@ def test_invalid_signature_infinite_signature_with_all_participants(spec, state) @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_infinite_signature_with_single_participant(spec, state): block = build_empty_block_for_next_slot(spec, state) # Try include a single participant with the special-case signature for no-participants. @@ -123,7 +117,6 @@ def test_invalid_signature_infinite_signature_with_single_participant(spec, stat @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_extra_participant(spec, state): committee_indices = compute_committee_indices(state) rng = random.Random(3030) @@ -330,7 +323,6 @@ def test_sync_committee_rewards_duplicate_committee_max_effective_balance_only_p @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_rewards_not_full_participants(spec, state): committee_indices = compute_committee_indices(state) rng = random.Random(1010) @@ -341,7 +333,6 @@ def test_sync_committee_rewards_not_full_participants(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_rewards_empty_participants(spec, state): committee_indices = compute_committee_indices(state) committee_bits = [False for _ in committee_indices] @@ -351,7 +342,6 @@ def test_sync_committee_rewards_empty_participants(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_invalid_signature_past_block(spec, state): committee_indices = compute_committee_indices(state) @@ -390,7 +380,6 @@ def test_invalid_signature_past_block(spec, state): @with_altair_and_later @with_presets([MINIMAL], reason="to produce different committee sets") @spec_state_test -@always_bls def test_invalid_signature_previous_committee(spec, state): # NOTE: the `state` provided is at genesis and the process to select # sync committees currently returns the same committee for the first and second @@ -430,7 +419,6 @@ def test_invalid_signature_previous_committee(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="too slow") def test_valid_signature_future_committee(spec, state): # NOTE: the `state` provided is at genesis and the process to select @@ -476,7 +464,6 @@ def test_valid_signature_future_committee(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="prefer short search to find matching proposer") def test_proposer_in_committee_without_participation(spec, state): committee_indices = compute_committee_indices(state, state.current_sync_committee) @@ -522,7 +509,6 @@ def test_proposer_in_committee_without_participation(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="prefer short search to find matching proposer") def test_proposer_in_committee_with_participation(spec, state): committee_indices = compute_committee_indices(state, state.current_sync_committee) @@ -582,7 +568,6 @@ def _exit_validator_from_committee_and_transition_state( @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_with_participating_exited_member(spec, state): # move state forward SHARD_COMMITTEE_PERIOD epochs to allow for exit state.slot += spec.config.SHARD_COMMITTEE_PERIOD * spec.SLOTS_PER_EPOCH @@ -621,7 +606,6 @@ def test_sync_committee_with_participating_exited_member(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_with_nonparticipating_exited_member(spec, state): # move state forward SHARD_COMMITTEE_PERIOD epochs to allow for exit state.slot += spec.config.SHARD_COMMITTEE_PERIOD * spec.SLOTS_PER_EPOCH @@ -664,7 +648,6 @@ def test_sync_committee_with_nonparticipating_exited_member(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_with_participating_withdrawable_member(spec, state): # move state forward SHARD_COMMITTEE_PERIOD epochs to allow for exit state.slot += spec.config.SHARD_COMMITTEE_PERIOD * spec.SLOTS_PER_EPOCH @@ -703,7 +686,6 @@ def test_sync_committee_with_participating_withdrawable_member(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_sync_committee_with_nonparticipating_withdrawable_member(spec, state): # move state forward SHARD_COMMITTEE_PERIOD epochs to allow for exit state.slot += spec.config.SHARD_COMMITTEE_PERIOD * spec.SLOTS_PER_EPOCH diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/test_process_deposit.py b/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/test_process_deposit.py index 335d4709d4..708e9bbc71 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/test_process_deposit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/block_processing/test_process_deposit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_altair_and_later, with_phases, @@ -14,7 +13,6 @@ @with_phases([ALTAIR]) @spec_state_test -@always_bls def test_effective_deposit_with_previous_fork_version(spec, state): assert state.fork.previous_version != state.fork.current_version @@ -29,7 +27,6 @@ def test_effective_deposit_with_previous_fork_version(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_ineffective_deposit_with_current_fork_version(spec, state): yield from run_deposit_processing_with_specific_fork_version( spec, diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/epoch_processing/test_process_sync_committee_updates.py b/tests/core/pyspec/eth_consensus_specs/test/altair/epoch_processing/test_process_sync_committee_updates.py index 092606a664..a0b1d83261 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/epoch_processing/test_process_sync_committee_updates.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/epoch_processing/test_process_sync_committee_updates.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, misc_balances, single_phase, spec_state_test, @@ -16,7 +15,7 @@ # # Note: -# Calculating sync committees requires pubkey aggregation, thus all tests are generated with `always_bls` +# Calculating sync committees requires pubkey aggregation, bls always enabled, thus decorator no needed. # @@ -56,7 +55,6 @@ def run_sync_committees_progress_test(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="too slow") def test_sync_committees_progress_genesis(spec, state): # Genesis epoch period has an exceptional case @@ -67,7 +65,6 @@ def test_sync_committees_progress_genesis(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="too slow") def test_sync_committees_progress_not_genesis(spec, state): # Transition out of the genesis epoch period to test non-exceptional case @@ -84,7 +81,6 @@ def test_sync_committees_progress_not_genesis(spec, state): ) @spec_test @single_phase -@always_bls @with_presets([MINIMAL], reason="too slow") def test_sync_committees_progress_misc_balances_genesis(spec, state): # Genesis epoch period has an exceptional case @@ -99,7 +95,6 @@ def test_sync_committees_progress_misc_balances_genesis(spec, state): ) @spec_test @single_phase -@always_bls @with_presets([MINIMAL], reason="too slow") def test_sync_committees_progress_misc_balances_not_genesis(spec, state): # Transition out of the genesis epoch period to test non-exceptional case @@ -112,7 +107,6 @@ def test_sync_committees_progress_misc_balances_not_genesis(spec, state): @with_altair_and_later @spec_state_test -@always_bls @with_presets([MINIMAL], reason="too slow") def test_sync_committees_no_progress_not_at_period_boundary(spec, state): assert spec.get_current_epoch(state) == spec.GENESIS_EPOCH diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/altair/random/test_random.py index b7cf12c453..727c456336 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/transition/test_operations.py b/tests/core/pyspec/eth_consensus_specs/test/altair/transition/test_operations.py index aea272a2ea..7c45f6687d 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/transition/test_operations.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/transition/test_operations.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, ForkMeta, with_fork_metas, with_presets, @@ -24,7 +23,6 @@ for pre, post in ALL_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_proposer_slashing_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -49,7 +47,6 @@ def test_transition_with_proposer_slashing_right_after_fork( for pre, post in ALL_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_proposer_slashing_right_before_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -79,7 +76,6 @@ def test_transition_with_proposer_slashing_right_before_fork( for pre, post in ALL_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_attester_slashing_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -104,7 +100,6 @@ def test_transition_with_attester_slashing_right_after_fork( for pre, post in ALL_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_attester_slashing_right_before_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): diff --git a/tests/core/pyspec/eth_consensus_specs/test/altair/unittests/validator/test_validator.py b/tests/core/pyspec/eth_consensus_specs/test/altair/unittests/validator/test_validator.py index aab1656d25..0f209527c4 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/altair/unittests/validator/test_validator.py +++ b/tests/core/pyspec/eth_consensus_specs/test/altair/unittests/validator/test_validator.py @@ -2,7 +2,6 @@ from collections import defaultdict from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_altair_and_later, with_presets, @@ -87,7 +86,6 @@ def _get_sync_committee_signature( @with_altair_and_later @with_presets([MINIMAL], reason="too slow") @spec_state_test -@always_bls def test_process_sync_committee_contributions(spec, state): # skip over slots at genesis transition_to(spec, state, state.slot + 3) @@ -129,7 +127,6 @@ def test_process_sync_committee_contributions(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_get_sync_committee_message(spec, state): validator_index = 0 block = spec.BeaconBlock(state_root=state.hash_tree_root()) @@ -224,7 +221,6 @@ def test_compute_subnets_for_sync_committee_slot_period_boundary(state, spec): @with_altair_and_later @spec_state_test -@always_bls def test_get_sync_committee_selection_proof(spec, state): slot = 1 subcommittee_index = 0 @@ -302,7 +298,6 @@ def test_get_contribution_and_proof(spec, state): @with_altair_and_later @spec_state_test -@always_bls def test_get_contribution_and_proof_signature(spec, state): privkey = privkeys[3] pubkey = pubkeys[3] diff --git a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_deposit.py b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_deposit.py index 5def87f91a..747d496c1e 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_deposit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_deposit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_bellatrix_and_later, ) @@ -10,7 +9,6 @@ @with_bellatrix_and_later @spec_state_test -@always_bls def test_ineffective_deposit_with_previous_fork_version(spec, state): # Since deposits are valid across forks, the domain is always set with `GENESIS_FORK_VERSION`. # It's an ineffective deposit because it fails at BLS sig verification. @@ -27,7 +25,6 @@ def test_ineffective_deposit_with_previous_fork_version(spec, state): @with_bellatrix_and_later @spec_state_test -@always_bls def test_effective_deposit_with_genesis_fork_version(spec, state): assert spec.config.GENESIS_FORK_VERSION not in ( state.fork.previous_version, diff --git a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_voluntary_exit.py b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_voluntary_exit.py index e127184357..14b9b111ca 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_voluntary_exit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/block_processing/test_process_voluntary_exit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_bellatrix_and_later, with_phases, @@ -51,7 +50,6 @@ def run_voluntary_exit_processing_test(spec, state, fork_version, is_before_fork @with_bellatrix_and_later @spec_state_test -@always_bls def test_invalid_voluntary_exit_with_current_fork_version_is_before_fork_epoch(spec, state): yield from run_voluntary_exit_processing_test( spec, @@ -64,7 +62,6 @@ def test_invalid_voluntary_exit_with_current_fork_version_is_before_fork_epoch(s @with_phases(BELLATRIX_AND_CAPELLA) @spec_state_test -@always_bls def test_voluntary_exit_with_current_fork_version_not_is_before_fork_epoch(spec, state): yield from run_voluntary_exit_processing_test( spec, @@ -76,7 +73,6 @@ def test_voluntary_exit_with_current_fork_version_not_is_before_fork_epoch(spec, @with_phases([BELLATRIX, CAPELLA]) @spec_state_test -@always_bls def test_voluntary_exit_with_previous_fork_version_is_before_fork_epoch(spec, state): assert state.fork.previous_version != state.fork.current_version @@ -90,7 +86,6 @@ def test_voluntary_exit_with_previous_fork_version_is_before_fork_epoch(spec, st @with_phases(BELLATRIX_AND_CAPELLA) @spec_state_test -@always_bls def test_invalid_voluntary_exit_with_previous_fork_version_not_is_before_fork_epoch(spec, state): assert state.fork.previous_version != state.fork.current_version @@ -105,7 +100,6 @@ def test_invalid_voluntary_exit_with_previous_fork_version_not_is_before_fork_ep @with_bellatrix_and_later @spec_state_test -@always_bls def test_invalid_voluntary_exit_with_genesis_fork_version_is_before_fork_epoch(spec, state): assert spec.config.GENESIS_FORK_VERSION not in ( state.fork.previous_version, @@ -123,7 +117,6 @@ def test_invalid_voluntary_exit_with_genesis_fork_version_is_before_fork_epoch(s @with_bellatrix_and_later @spec_state_test -@always_bls def test_invalid_voluntary_exit_with_genesis_fork_version_not_is_before_fork_epoch(spec, state): assert spec.config.GENESIS_FORK_VERSION not in ( state.fork.previous_version, diff --git a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/random/test_random.py index b7d8a39f32..1e4c375449 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/bellatrix/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/bellatrix/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/capella/block_processing/test_process_bls_to_execution_change.py b/tests/core/pyspec/eth_consensus_specs/test/capella/block_processing/test_process_bls_to_execution_change.py index 49bb4cce94..c033047e5e 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/capella/block_processing/test_process_bls_to_execution_change.py +++ b/tests/core/pyspec/eth_consensus_specs/test/capella/block_processing/test_process_bls_to_execution_change.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, spec_state_test, with_capella_and_later, @@ -193,7 +192,6 @@ def test_invalid_incorrect_from_bls_pubkey(spec, state): @with_capella_and_later @spec_state_test -@always_bls def test_invalid_bad_signature(spec, state): signed_address_change = get_signed_address_change(spec, state) # Mutate signature @@ -206,7 +204,6 @@ def test_invalid_bad_signature(spec, state): @with_capella_and_later @spec_state_test -@always_bls def test_genesis_fork_version(spec, state): signed_address_change = get_signed_address_change( spec, state, fork_version=spec.config.GENESIS_FORK_VERSION @@ -217,7 +214,6 @@ def test_genesis_fork_version(spec, state): @with_capella_and_later @spec_state_test -@always_bls def test_invalid_current_fork_version(spec, state): signed_address_change = get_signed_address_change( spec, state, fork_version=state.fork.current_version @@ -230,7 +226,6 @@ def test_invalid_current_fork_version(spec, state): @with_capella_and_later @spec_state_test -@always_bls def test_invalid_previous_fork_version(spec, state): signed_address_change = get_signed_address_change( spec, state, fork_version=state.fork.previous_version @@ -243,7 +238,6 @@ def test_invalid_previous_fork_version(spec, state): @with_capella_and_later @spec_state_test -@always_bls def test_invalid_genesis_validators_root(spec, state): signed_address_change = get_signed_address_change( spec, state, genesis_validators_root=b"\x99" * 32 @@ -257,7 +251,6 @@ def test_invalid_genesis_validators_root(spec, state): @with_phases([CAPELLA]) @with_presets([MAINNET], reason="use mainnet fork version") @spec_state_test -@always_bls def test_valid_signature_from_staking_deposit_cli(spec, state): validator_index = 1 from_bls_pubkey = bytes.fromhex( diff --git a/tests/core/pyspec/eth_consensus_specs/test/capella/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/capella/random/test_random.py index 8b18493bfd..a1b0f08e82 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/capella/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/capella/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/context.py b/tests/core/pyspec/eth_consensus_specs/test/context.py index 99804ea7ba..1ec7be7307 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/context.py +++ b/tests/core/pyspec/eth_consensus_specs/test/context.py @@ -312,9 +312,6 @@ def entry(fn): def spec_test(fn): # Bls switch must be wrapped by vector_test, # to fully go through the yielded bls switch data, before setting back the BLS setting. - # A test may apply BLS overrides such as @always_bls, - # but if it yields data (n.b. @always_bls yields the bls setting), it should be wrapped by this decorator. - # This is why @always_bls has its own bls switch, since the override is beyond the reach of the outer switch. return vector_test(bls_switch(fn)) @@ -400,21 +397,6 @@ def entry(*args, **kw): return with_meta_tags({"bls_setting": 2})(entry) -def always_bls(fn): - """ - Decorator to apply on ``bls_switch`` decorator to force BLS activation. Useful to mark tests as BLS-dependent. - This decorator may only be applied to yielding spec test functions, and should be wrapped by vector_test, - as the yielding needs to complete before setting back the BLS setting. - """ - - def entry(*args, **kw): - # override bls setting - kw["bls_active"] = True - return bls_switch(fn)(*args, **kw) - - return with_meta_tags({"bls_setting": 1})(entry) - - def bls_switch(fn): """ Decorator to make a function execute with BLS ON, or BLS off. diff --git a/tests/core/pyspec/eth_consensus_specs/test/deneb/block_processing/test_process_voluntary_exit.py b/tests/core/pyspec/eth_consensus_specs/test/deneb/block_processing/test_process_voluntary_exit.py index f2b5bd02fa..73a28e6f64 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/deneb/block_processing/test_process_voluntary_exit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/deneb/block_processing/test_process_voluntary_exit.py @@ -2,7 +2,6 @@ run_voluntary_exit_processing_test, ) from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_deneb_and_later, ) @@ -13,7 +12,6 @@ @with_deneb_and_later @spec_state_test -@always_bls def test_invalid_voluntary_exit_with_current_fork_version_not_is_before_fork_epoch(spec, state): """ Since Deneb, the VoluntaryExit domain is fixed to `CAPELLA_FORK_VERSION` @@ -30,7 +28,6 @@ def test_invalid_voluntary_exit_with_current_fork_version_not_is_before_fork_epo @with_deneb_and_later @spec_state_test -@always_bls def test_voluntary_exit_with_previous_fork_version_not_is_before_fork_epoch(spec, state): """ Since Deneb, the VoluntaryExit domain is fixed to `CAPELLA_FORK_VERSION` @@ -60,7 +57,6 @@ def test_voluntary_exit_with_previous_fork_version_not_is_before_fork_epoch(spec @with_deneb_and_later @spec_state_test -@always_bls def test_voluntary_exit_with_previous_fork_version_is_before_fork_epoch(spec, state): """ Since Deneb, the VoluntaryExit domain is fixed to `CAPELLA_FORK_VERSION` diff --git a/tests/core/pyspec/eth_consensus_specs/test/deneb/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/deneb/random/test_random.py index ba63e65334..2d2b03094c 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/deneb/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/deneb/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/deneb/transition/test_operations.py b/tests/core/pyspec/eth_consensus_specs/test/deneb/transition/test_operations.py index daa987ff2e..97cf58959c 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/deneb/transition/test_operations.py +++ b/tests/core/pyspec/eth_consensus_specs/test/deneb/transition/test_operations.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, ForkMeta, with_fork_metas, ) @@ -36,7 +35,6 @@ for pre, post in AFTER_DENEB_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_btec_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -61,7 +59,6 @@ def test_transition_with_btec_right_after_fork( for pre, post in AFTER_DENEB_PRE_POST_FORKS ] ) -@always_bls def test_transition_with_btec_right_before_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): diff --git a/tests/core/pyspec/eth_consensus_specs/test/deneb/unittests/polynomial_commitments/test_polynomial_commitments.py b/tests/core/pyspec/eth_consensus_specs/test/deneb/unittests/polynomial_commitments/test_polynomial_commitments.py index 3d4a56beb2..be08983dc0 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/deneb/unittests/polynomial_commitments/test_polynomial_commitments.py +++ b/tests/core/pyspec/eth_consensus_specs/test/deneb/unittests/polynomial_commitments/test_polynomial_commitments.py @@ -1,7 +1,6 @@ import random from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, single_phase, spec_test, @@ -249,7 +248,6 @@ def test_validate_kzg_g1_neutral_element(spec): @with_deneb_and_later @spec_test @single_phase -@always_bls def test_validate_kzg_g1_not_in_g1(spec): """ Verify that `validate_kzg_g1` fails on point not in G1 @@ -261,7 +259,6 @@ def test_validate_kzg_g1_not_in_g1(spec): @with_deneb_and_later @spec_test @single_phase -@always_bls def test_validate_kzg_g1_not_on_curve(spec): """ Verify that `validate_kzg_g1` fails on point not in G1 diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_attestation.py b/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_attestation.py index 45e54b59e0..fa41f27ead 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_attestation.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_attestation.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_electra_and_later, with_presets, @@ -39,7 +38,6 @@ def test_invalid_attestation_data_index_not_zero(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_invalid_committee_index(spec, state): """ EIP-7549 test @@ -113,7 +111,6 @@ def test_invalid_nonset_multiple_committee_bits(spec, state): @with_electra_and_later @spec_state_test @with_presets([MINIMAL], "need multiple committees per slot") -@always_bls def test_multiple_committees(spec, state): """ EIP-7549 test @@ -137,7 +134,6 @@ def test_multiple_committees(spec, state): @with_electra_and_later @spec_state_test @with_presets([MINIMAL], "need multiple committees per slot") -@always_bls def test_one_committee_with_gap(spec, state): """ EIP-7549 test diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_deposit_request.py b/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_deposit_request.py index 4d0aaa9ced..a4da2e4ef9 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_deposit_request.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/block_processing/test_process_deposit_request.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_all_phases_from_to, with_electra_and_later, @@ -148,7 +147,6 @@ def test_process_deposit_request_top_up_max_effective_balance_compounding(spec, @with_electra_and_later @spec_state_test -@always_bls def test_process_deposit_request_invalid_sig(spec, state): # fresh deposit = next validator index = validator appended to registry validator_index = len(state.validators) @@ -163,7 +161,6 @@ def test_process_deposit_request_invalid_sig(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_process_deposit_request_top_up_invalid_sig(spec, state): validator_index = 0 amount = spec.MIN_ACTIVATION_BALANCE // 4 diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_apply_pending_deposit.py b/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_apply_pending_deposit.py index 86ad9c451d..c53eca1590 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_apply_pending_deposit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_apply_pending_deposit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_electra_and_later, ) @@ -229,7 +228,6 @@ def test_apply_pending_deposit_non_versioned_withdrawal_credentials_over_min_act @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_correct_sig_but_forked_state(spec, state): validator_index = len(state.validators) amount = spec.MIN_ACTIVATION_BALANCE @@ -241,7 +239,6 @@ def test_apply_pending_deposit_correct_sig_but_forked_state(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_incorrect_sig_new_deposit(spec, state): # fresh deposit = next validator index = validator appended to registry validator_index = len(state.validators) @@ -333,7 +330,6 @@ def test_apply_pending_deposit_top_up__less_effective_balance(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_incorrect_sig_top_up(spec, state): validator_index = 0 amount = spec.MIN_ACTIVATION_BALANCE // 4 @@ -367,7 +363,6 @@ def test_apply_pending_deposit_incorrect_withdrawal_credentials_top_up(spec, sta @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_key_validate_invalid_subgroup(spec, state): validator_index = len(state.validators) amount = spec.MIN_ACTIVATION_BALANCE @@ -386,7 +381,6 @@ def test_apply_pending_deposit_key_validate_invalid_subgroup(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_key_validate_invalid_decompression(spec, state): validator_index = len(state.validators) amount = spec.MIN_ACTIVATION_BALANCE @@ -407,7 +401,6 @@ def test_apply_pending_deposit_key_validate_invalid_decompression(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_ineffective_deposit_with_bad_fork_version(spec, state): validator_index = len(state.validators) fork_version = spec.Version("0xAaBbCcDd") @@ -426,7 +419,6 @@ def test_apply_pending_deposit_ineffective_deposit_with_bad_fork_version(spec, s @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_with_previous_fork_version(spec, state): # Since deposits are valid across forks, the domain is always set with `GENESIS_FORK_VERSION` # It's an ineffective deposit because it fails at BLS sig verification @@ -450,7 +442,6 @@ def test_apply_pending_deposit_with_previous_fork_version(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_ineffective_deposit_with_current_fork_version(spec, state): validator_index = len(state.validators) fork_version = state.fork.current_version @@ -469,7 +460,6 @@ def test_ineffective_deposit_with_current_fork_version(spec, state): @with_electra_and_later @spec_state_test -@always_bls def test_apply_pending_deposit_effective_deposit_with_genesis_fork_version(spec, state): assert spec.config.GENESIS_FORK_VERSION not in ( state.fork.previous_version, diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_process_pending_deposits.py b/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_process_pending_deposits.py index a679a88624..b99426cb38 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_process_pending_deposits.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/epoch_processing/pending_deposits/test_process_pending_deposits.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, default_activation_threshold, scaled_churn_balances_exceed_activation_exit_churn_limit, single_phase, @@ -327,7 +326,6 @@ def test_process_pending_deposits_multiple_pending_deposits_above_churn(spec, st @with_electra_and_later @spec_state_test -@always_bls def test_process_pending_deposits_multiple_for_new_validator(spec, state): """ - There are three pending deposits in the state, all pointing to the same public key. diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/electra/random/test_random.py index 2ac72b2320..5c41b2ef01 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/electra/transition/test_operations.py b/tests/core/pyspec/eth_consensus_specs/test/electra/transition/test_operations.py index b4cc61f9b9..edc9bd20fb 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/electra/transition/test_operations.py +++ b/tests/core/pyspec/eth_consensus_specs/test/electra/transition/test_operations.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, ForkMeta, with_fork_metas, with_presets, @@ -28,7 +27,6 @@ if post not in (GLOAS, HEZE) ] ) -@always_bls def test_transition_with_deposit_request_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -61,7 +59,6 @@ def test_transition_with_deposit_request_right_after_fork( ] ) @with_presets([MINIMAL], reason="too slow") -@always_bls def test_transition_with_full_withdrawal_request_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): @@ -93,7 +90,6 @@ def test_transition_with_full_withdrawal_request_right_after_fork( if post not in (GLOAS, HEZE) ] ) -@always_bls def test_transition_with_consolidation_request_right_after_fork( state, fork_epoch, spec, post_spec, pre_tag, post_tag ): diff --git a/tests/core/pyspec/eth_consensus_specs/test/fulu/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/fulu/random/test_random.py index d014c61ef9..68193bfa61 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/fulu/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/fulu/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_deposit_request.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_deposit_request.py index bada076e10..db1eeb7780 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_deposit_request.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_deposit_request.py @@ -1,4 +1,4 @@ -from eth_consensus_specs.test.context import always_bls, spec_state_test, with_gloas_and_later +from eth_consensus_specs.test.context import spec_state_test, with_gloas_and_later from eth_consensus_specs.test.helpers.deposits import ( make_withdrawal_credentials, prepare_builder_deposit_request, @@ -212,7 +212,6 @@ def test_process_deposit_request__builder_top_up_large(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__new_builder_invalid_sig(spec, state): """Test that new builder deposit with invalid signature is rejected.""" amount = spec.MIN_DEPOSIT_AMOUNT @@ -226,7 +225,6 @@ def test_process_deposit_request__new_builder_invalid_sig(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__builder_top_up_invalid_sig(spec, state): """Test that top-up deposit with invalid signature still succeeds for existing builders.""" amount = spec.MIN_DEPOSIT_AMOUNT @@ -851,7 +849,6 @@ def test_process_deposit_request__routing__new_pubkey_compounding_credentials(sp @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__routing__pending_deposit_valid_signature(spec, state): """Test that pubkey with pending deposit with valid signature goes to validator queue.""" # Use a pubkey that doesn't exist as validator or builder yet @@ -899,7 +896,6 @@ def test_process_deposit_request__routing__pending_deposit_valid_signature(spec, @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__routing__pending_deposit_invalid_signature(spec, state): """Test that pubkey with pending deposit with invalid signature becomes builder.""" # Use a pubkey from builder_pubkeys that doesn't exist as validator or builder yet @@ -1017,7 +1013,6 @@ def test_process_deposit_request__nonstandard_credential_padding(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__routing__pending_deposits_invalid_then_valid(spec, state): """Test that pubkey with invalid pending deposits followed by valid one goes to validator queue.""" # Use a pubkey that doesn't exist as validator or builder yet @@ -1079,7 +1074,6 @@ def test_process_deposit_request__routing__pending_deposits_invalid_then_valid(s @with_gloas_and_later @spec_state_test -@always_bls def test_process_deposit_request__routing__pending_deposit_builder_credentials(spec, state): """Test that pubkey with pending deposit with builder credentials goes to validator queue.""" # Use a pubkey that doesn't exist as validator or builder yet diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload.py index ab91061fa2..f4414da8c0 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, spec_state_test, with_gloas_and_later, @@ -219,7 +218,6 @@ def setup_state_with_payload_bid( @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_valid(spec, state): """ Test valid execution payload processing with separate builder and non-zero payment @@ -269,7 +267,6 @@ def test_process_execution_payload_valid(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_self_build_zero_value(spec, state): """ Test valid self-building scenario (zero value) @@ -313,7 +310,6 @@ def test_process_execution_payload_self_build_zero_value(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_large_payment_churn_impact(spec, state): """ Test execution payload processing with large payment that impacts exit churn state @@ -363,7 +359,6 @@ def test_process_execution_payload_large_payment_churn_impact(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_with_blob_commitments(spec, state): """ Test execution payload processing with blob KZG commitments and separate builder @@ -419,7 +414,6 @@ def test_process_execution_payload_with_blob_commitments(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_with_execution_requests(spec, state): """ Test execution payload processing with execution requests and separate builder @@ -543,7 +537,6 @@ def test_process_execution_payload_invalid_signature(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_beacon_block_root(spec, state): """ Test wrong beacon block root fails with separate builder @@ -571,7 +564,6 @@ def test_process_execution_payload_wrong_beacon_block_root(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_slot(spec, state): """ Test wrong slot fails with separate builder @@ -598,7 +590,6 @@ def test_process_execution_payload_wrong_slot(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_builder_index(spec, state): """ Test wrong builder index fails with separate builders @@ -627,7 +618,6 @@ def test_process_execution_payload_wrong_builder_index(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_missing_expected_withdrawal(spec, state): """ Verify payload rejected when it omits a withdrawal expected by the state. @@ -661,7 +651,6 @@ def test_process_execution_payload_missing_expected_withdrawal(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_gas_limit(spec, state): """ Test wrong gas limit fails with separate builder @@ -686,7 +675,6 @@ def test_process_execution_payload_wrong_gas_limit(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_block_hash(spec, state): """ Test wrong block hash fails with separate builder @@ -709,7 +697,6 @@ def test_process_execution_payload_wrong_block_hash(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_parent_hash(spec, state): """ Test wrong parent hash fails with separate builder @@ -732,7 +719,6 @@ def test_process_execution_payload_wrong_parent_hash(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_prev_randao(spec, state): """ Test wrong prev_randao fails with separate builder @@ -756,7 +742,6 @@ def test_process_execution_payload_wrong_prev_randao(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_bid_prev_randao_mismatch(spec, state): """ Test that committed_bid.prev_randao must equal payload.prev_randao @@ -785,7 +770,6 @@ def test_process_execution_payload_bid_prev_randao_mismatch(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_wrong_timestamp(spec, state): """ Test wrong timestamp fails with separate builder @@ -809,7 +793,6 @@ def test_process_execution_payload_wrong_timestamp(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_execution_engine_invalid(spec, state): """ Test execution engine returns invalid with separate builder diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload_bid.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload_bid.py index ff6602631f..80b6b97f3d 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload_bid.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_execution_payload_bid.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, spec_state_test, with_gloas_and_later, @@ -176,7 +175,6 @@ def test_process_execution_payload_bid_valid_self_build(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_execution_payload_bid_valid_builder(spec, state): """ Test valid builder scenario with registered builder and non-zero value diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_payload_attestation.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_payload_attestation.py index eef256e508..e72874c403 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_payload_attestation.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_payload_attestation.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, default_activation_threshold, expect_assertion_error, large_validator_set, @@ -140,7 +139,6 @@ def _compute_selection_with_acceptance_iterations(spec, state, indices, seed, si @with_gloas_and_later @spec_state_test -@always_bls def test_process_payload_attestation_payload_present(spec, state): """ Test basic valid payload attestation processing @@ -154,7 +152,6 @@ def test_process_payload_attestation_payload_present(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_payload_attestation_payload_not_present(spec, state): """ Test valid payload attestation indicating payload was not present @@ -168,7 +165,6 @@ def test_process_payload_attestation_payload_not_present(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_payload_attestation_partial_participation(spec, state): """ Test valid payload attestation with only some PTC members participating @@ -271,7 +267,6 @@ def test_process_payload_attestation_no_attesting_indices(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_process_payload_attestation_cross_epoch_wrong_domain(spec, state): """ Test that payload attestation signed with wrong epoch domain fails. @@ -308,7 +303,6 @@ def test_process_payload_attestation_cross_epoch_wrong_domain(spec, state): @with_presets([MINIMAL], reason="mainnet preset requires a much larger validator set") @with_custom_state(balances_fn=large_validator_set, threshold_fn=default_activation_threshold) @spec_test -@always_bls @single_phase def test_process_payload_attestation_uses_multiple_committees(spec, state): """ @@ -358,7 +352,6 @@ def test_process_payload_attestation_uses_multiple_committees(spec, state): @with_presets([MINIMAL], reason="mainnet preset requires a much larger validator set") @with_custom_state(balances_fn=large_validator_set, threshold_fn=default_activation_threshold) @spec_test -@always_bls @single_phase def test_process_payload_attestation_sampling_not_capped(spec, state): """ diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_voluntary_exit.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_voluntary_exit.py index 2375644c9b..56f6068aac 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_voluntary_exit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/block_processing/test_process_voluntary_exit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, spec_state_test, with_gloas_and_later, @@ -179,7 +178,6 @@ def test_builder_voluntary_exit__invalid__pending_payment(spec, state): @with_gloas_and_later @spec_state_test -@always_bls def test_builder_voluntary_exit__invalid__bad_signature(spec, state): """Test builder voluntary exit with invalid signature.""" builder_index = 0 diff --git a/tests/core/pyspec/eth_consensus_specs/test/gloas/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/gloas/random/test_random.py index 582ec7dfb9..5310ee667a 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/gloas/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/gloas/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/heze/unittests/validator/test_validator.py b/tests/core/pyspec/eth_consensus_specs/test/heze/unittests/validator/test_validator.py index ce9ea19c57..2564828c56 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/heze/unittests/validator/test_validator.py +++ b/tests/core/pyspec/eth_consensus_specs/test/heze/unittests/validator/test_validator.py @@ -1,7 +1,6 @@ import random from eth_consensus_specs.test.context import ( - always_bls, default_activation_threshold, single_phase, spec_state_test, @@ -83,7 +82,6 @@ def test_get_inclusion_committee_assignment_out_bound_epoch(spec, state): @with_heze_and_later @spec_state_test -@always_bls def test_get_inclusion_list_signature(spec, state): inclusion_list = get_empty_inclusion_list(spec, state) domain = spec.get_domain( diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attestation.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attestation.py index 4ebc2cdb63..89bb8bac27 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attestation.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attestation.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, low_balances, never_bls, single_phase, @@ -55,7 +54,6 @@ def test_previous_epoch(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_attestation_signature(spec, state): attestation = get_valid_attestation(spec, state) next_slots(spec, state, spec.MIN_ATTESTATION_INCLUSION_DELAY) @@ -65,7 +63,6 @@ def test_invalid_attestation_signature(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_empty_participants_zeroes_sig(spec, state): attestation = get_valid_attestation( spec, state, filter_participant_set=lambda comm: [] @@ -78,7 +75,6 @@ def test_invalid_empty_participants_zeroes_sig(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_empty_participants_seemingly_valid_sig(spec, state): attestation = get_valid_attestation( spec, state, filter_participant_set=lambda comm: [] @@ -143,7 +139,6 @@ def test_invalid_old_source_epoch(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_wrong_index_for_committee_signature(spec, state): attestation = get_valid_attestation(spec, state) next_slots(spec, state, spec.MIN_ATTESTATION_INCLUSION_DELAY) diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attester_slashing.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attester_slashing.py index c462737df2..b157d0b59c 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attester_slashing.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_attester_slashing.py @@ -1,7 +1,6 @@ from random import Random from eth_consensus_specs.test.context import ( - always_bls, expect_assertion_error, low_balances, misc_balances, @@ -134,7 +133,6 @@ def test_basic_surround(spec, state): @with_all_phases @spec_state_test -@always_bls def test_already_exited_recent(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) slashed_indices = get_indexed_attestation_participants(spec, attester_slashing.attestation_1) @@ -146,7 +144,6 @@ def test_already_exited_recent(spec, state): @with_all_phases @spec_state_test -@always_bls def test_proposer_index_slashed(spec, state): # Transition past genesis slot because generally doesn't have a proposer next_epoch_via_block(spec, state) @@ -223,7 +220,6 @@ def test_with_effective_balance_disparity(spec, state): @with_all_phases @spec_state_test -@always_bls def test_already_exited_long_ago(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) slashed_indices = get_indexed_attestation_participants(spec, attester_slashing.attestation_1) @@ -236,7 +232,6 @@ def test_already_exited_long_ago(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_1(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=True) yield from run_attester_slashing_processing(spec, state, attester_slashing, valid=False) @@ -244,7 +239,6 @@ def test_invalid_incorrect_sig_1(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_2(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=False) yield from run_attester_slashing_processing(spec, state, attester_slashing, valid=False) @@ -252,7 +246,6 @@ def test_invalid_incorrect_sig_2(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_1_and_2(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=False) yield from run_attester_slashing_processing(spec, state, attester_slashing, valid=False) @@ -299,7 +292,6 @@ def test_invalid_participants_already_slashed(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_high_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -312,7 +304,6 @@ def test_invalid_att1_high_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_high_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -325,7 +316,6 @@ def test_invalid_att2_high_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_empty_indices(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=True) @@ -337,7 +327,6 @@ def test_invalid_att1_empty_indices(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_empty_indices(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=False) @@ -349,7 +338,6 @@ def test_invalid_att2_empty_indices(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_all_empty_indices(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=False) @@ -364,7 +352,6 @@ def test_invalid_all_empty_indices(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_bad_extra_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -380,7 +367,6 @@ def test_invalid_att1_bad_extra_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_bad_replaced_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -398,7 +384,6 @@ def test_invalid_att1_bad_replaced_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_bad_extra_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -414,7 +399,6 @@ def test_invalid_att2_bad_extra_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_bad_replaced_index(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=True) @@ -432,7 +416,6 @@ def test_invalid_att2_bad_replaced_index(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_duplicate_index_normal_signed(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=True) @@ -452,7 +435,6 @@ def test_invalid_att1_duplicate_index_normal_signed(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_duplicate_index_normal_signed(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=False) @@ -472,7 +454,6 @@ def test_invalid_att2_duplicate_index_normal_signed(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att1_duplicate_index_double_signed(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=False, signed_2=True) @@ -489,7 +470,6 @@ def test_invalid_att1_duplicate_index_double_signed(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_att2_duplicate_index_double_signed(spec, state): attester_slashing = get_valid_attester_slashing(spec, state, signed_1=True, signed_2=False) diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_deposit.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_deposit.py index 52467481fd..beae20af47 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_deposit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_deposit.py @@ -1,4 +1,4 @@ -from eth_consensus_specs.test.context import always_bls, spec_state_test, with_all_phases +from eth_consensus_specs.test.context import spec_state_test, with_all_phases from eth_consensus_specs.test.helpers.deposits import ( build_deposit, prepare_state_and_deposit, @@ -92,7 +92,6 @@ def test_new_deposit_non_versioned_withdrawal_credentials(spec, state): @with_all_phases @spec_state_test -@always_bls def test_correct_sig_but_forked_state(spec, state): validator_index = len(state.validators) amount = spec.MAX_EFFECTIVE_BALANCE @@ -104,7 +103,6 @@ def test_correct_sig_but_forked_state(spec, state): @with_all_phases @spec_state_test -@always_bls def test_incorrect_sig_new_deposit(spec, state): # fresh deposit = next validator index = validator appended to registry validator_index = len(state.validators) @@ -172,7 +170,6 @@ def test_top_up__zero_balance(spec, state): @with_all_phases @spec_state_test -@always_bls def test_incorrect_sig_top_up(spec, state): validator_index = 0 amount = spec.MAX_EFFECTIVE_BALANCE // 4 @@ -288,7 +285,6 @@ def test_key_validate_invalid_decompression(spec, state): @with_all_phases @spec_state_test -@always_bls def test_ineffective_deposit_with_bad_fork_version(spec, state): yield from run_deposit_processing_with_specific_fork_version( spec, diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_proposer_slashing.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_proposer_slashing.py index 8f0ae83e8b..65083844f0 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_proposer_slashing.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_proposer_slashing.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_all_phases, ) @@ -239,7 +238,6 @@ def test_block_header_from_future(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_1(spec, state): proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=False, signed_2=True) @@ -252,7 +250,6 @@ def test_invalid_incorrect_sig_1(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_2(spec, state): proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=True, signed_2=False) @@ -265,7 +262,6 @@ def test_invalid_incorrect_sig_2(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_1_and_2(spec, state): proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=False, signed_2=False) @@ -278,7 +274,6 @@ def test_invalid_incorrect_sig_1_and_2(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_sig_1_and_2_swap(spec, state): # Get valid signatures for the slashings proposer_slashing = get_valid_proposer_slashing(spec, state, signed_1=True, signed_2=True) diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_voluntary_exit.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_voluntary_exit.py index 837a2eae69..af3e9ecaf1 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_voluntary_exit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/block_processing/test_process_voluntary_exit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, scaled_churn_balances_min_churn_limit, single_phase, spec_state_test, @@ -42,7 +41,6 @@ def test_basic(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_signature(spec, state): # move state forward SHARD_COMMITTEE_PERIOD epochs to allow for exit state.slot += spec.config.SHARD_COMMITTEE_PERIOD * spec.SLOTS_PER_EPOCH diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_attester_slashing.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_attester_slashing.py index 9282a53ec0..4237a37893 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_attester_slashing.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_attester_slashing.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_all_phases, ) @@ -127,7 +126,6 @@ def test_gossip_attester_slashing__reject_not_slashable_data(spec, state): @with_all_phases @spec_state_test -@always_bls def test_gossip_attester_slashing__reject_invalid_attestation_1(spec, state): """ Test that an attester slashing with invalid first attestation is rejected. @@ -161,7 +159,6 @@ def test_gossip_attester_slashing__reject_invalid_attestation_1(spec, state): @with_all_phases @spec_state_test -@always_bls def test_gossip_attester_slashing__reject_invalid_attestation_2(spec, state): """ Test that an attester slashing with invalid second attestation is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_aggregate_and_proof.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_aggregate_and_proof.py index 55636f003c..bb8eb86131 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_aggregate_and_proof.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_aggregate_and_proof.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, default_activation_threshold, single_phase, spec_state_test, @@ -798,7 +797,6 @@ def test_gossip_beacon_aggregate_and_proof__ignore_already_seen_aggregator(spec, threshold_fn=default_activation_threshold, ) @single_phase -@always_bls def test_gossip_beacon_aggregate_and_proof__reject_not_aggregator(spec, state): """ Test that an aggregate from a validator not selected as aggregator is rejected. @@ -990,7 +988,6 @@ def test_gossip_beacon_aggregate_and_proof__reject_aggregator_index_out_of_range @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_beacon_aggregate_and_proof__reject_invalid_selection_proof(spec, state): """ Test that an aggregate with invalid selection proof signature is rejected. @@ -1042,7 +1039,6 @@ def test_gossip_beacon_aggregate_and_proof__reject_invalid_selection_proof(spec, @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_beacon_aggregate_and_proof__reject_invalid_aggregator_signature(spec, state): """ Test that an aggregate with invalid aggregator signature is rejected. @@ -1094,7 +1090,6 @@ def test_gossip_beacon_aggregate_and_proof__reject_invalid_aggregator_signature( @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_beacon_aggregate_and_proof__reject_invalid_aggregate_signature(spec, state): """ Test that an aggregate with invalid aggregate attestation signature is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_attestation.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_attestation.py index 751f9b8d9c..929388eb76 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_attestation.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_attestation.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_phases, ) @@ -841,7 +840,6 @@ def test_gossip_beacon_attestation__reject_block_failed_validation(spec, state): @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_beacon_attestation__reject_invalid_signature(spec, state): """ Test that an attestation with invalid signature is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_block.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_block.py index 6e21d2c808..ab9951560c 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_block.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_beacon_block.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_phases, ) @@ -570,7 +569,6 @@ def test_gossip_beacon_block__reject_finalized_checkpoint_not_ancestor(spec, sta @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_beacon_block__reject_invalid_proposer_signature(spec, state): """ Test that a block with an invalid proposer signature is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_proposer_slashing.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_proposer_slashing.py index 29ec5a800e..4669a59ef5 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_proposer_slashing.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_proposer_slashing.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_all_phases, ) @@ -278,7 +277,6 @@ def test_gossip_proposer_slashing__reject_proposer_not_slashable(spec, state): @with_all_phases @spec_state_test -@always_bls def test_gossip_proposer_slashing__reject_invalid_signature_1(spec, state): """ Test that a proposer slashing with invalid first signature is rejected. @@ -312,7 +310,6 @@ def test_gossip_proposer_slashing__reject_invalid_signature_1(spec, state): @with_all_phases @spec_state_test -@always_bls def test_gossip_proposer_slashing__reject_invalid_signature_2(spec, state): """ Test that a proposer slashing with invalid second signature is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_voluntary_exit.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_voluntary_exit.py index 53dfa307b3..969d49d8bb 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_voluntary_exit.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/networking/test_gossip_voluntary_exit.py @@ -1,5 +1,4 @@ from eth_consensus_specs.test.context import ( - always_bls, spec_state_test, with_phases, ) @@ -287,7 +286,6 @@ def test_gossip_voluntary_exit__reject_not_active_long_enough(spec, state): @with_phases([PHASE0]) @spec_state_test -@always_bls def test_gossip_voluntary_exit__reject_invalid_signature(spec, state): """ Test that a voluntary exit with invalid signature is rejected. diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/random/test_random.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/random/test_random.py index 41bb24e05d..4e1e927bd3 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/random/test_random.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/random/test_random.py @@ -5,7 +5,6 @@ """ from eth_consensus_specs.test.context import ( - always_bls, misc_balances_in_default_range_with_many_validators, only_generator, single_phase, @@ -28,7 +27,6 @@ ) @spec_test @single_phase -@always_bls def test_randomized_0(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -100,7 +98,6 @@ def test_randomized_0(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_1(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -172,7 +169,6 @@ def test_randomized_1(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_2(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -244,7 +240,6 @@ def test_randomized_2(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_3(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -316,7 +311,6 @@ def test_randomized_3(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_4(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -388,7 +382,6 @@ def test_randomized_4(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_5(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -460,7 +453,6 @@ def test_randomized_5(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_6(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -532,7 +524,6 @@ def test_randomized_6(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_7(spec, state): # scenario as high-level, informal text: # epochs:0,slots:0,with-block:no_block @@ -604,7 +595,6 @@ def test_randomized_7(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_8(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -676,7 +666,6 @@ def test_randomized_8(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_9(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -748,7 +737,6 @@ def test_randomized_9(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_10(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -820,7 +808,6 @@ def test_randomized_10(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_11(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -892,7 +879,6 @@ def test_randomized_11(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_12(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -964,7 +950,6 @@ def test_randomized_12(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_13(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1036,7 +1021,6 @@ def test_randomized_13(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_14(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block @@ -1108,7 +1092,6 @@ def test_randomized_14(spec, state): ) @spec_test @single_phase -@always_bls def test_randomized_15(spec, state): # scenario as high-level, informal text: # epochs:epochs_until_leak,slots:0,with-block:no_block diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/sanity/test_blocks.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/sanity/test_blocks.py index 74f082edcc..bb13e4fe2b 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/sanity/test_blocks.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/sanity/test_blocks.py @@ -1,7 +1,6 @@ from random import Random from eth_consensus_specs.test.context import ( - always_bls, dump_skipping_message, expect_assertion_error, large_validator_set, @@ -280,7 +279,6 @@ def test_invalid_incorrect_state_root(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_all_zeroed_sig(spec, state): yield "pre", state @@ -294,7 +292,6 @@ def test_invalid_all_zeroed_sig(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_block_sig(spec, state): yield "pre", state @@ -314,7 +311,6 @@ def test_invalid_incorrect_block_sig(spec, state): @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_proposer_index_sig_from_expected_proposer(spec, state): yield "pre", state @@ -336,7 +332,6 @@ def test_invalid_incorrect_proposer_index_sig_from_expected_proposer(spec, state @with_all_phases @spec_state_test -@always_bls def test_invalid_incorrect_proposer_index_sig_from_proposer_index(spec, state): yield "pre", state @@ -1136,11 +1131,8 @@ def test_balance_driven_status_transitions(spec, state): assert state.validators[validator_index].exit_epoch < spec.FAR_FUTURE_EPOCH -# Requires always_bls because historical root period and sync committee period is same length -# so this epoch transition also computes new sync committees which requires aggregation @with_all_phases @spec_state_test -@always_bls def test_historical_batch(spec, state): state.slot += spec.SLOTS_PER_HISTORICAL_ROOT - (state.slot % spec.SLOTS_PER_HISTORICAL_ROOT) - 1 pre_historical_roots = state.historical_roots.copy() diff --git a/tests/core/pyspec/eth_consensus_specs/test/phase0/unittests/validator/test_validator_unittest.py b/tests/core/pyspec/eth_consensus_specs/test/phase0/unittests/validator/test_validator_unittest.py index 6689a79b37..f97bd36596 100644 --- a/tests/core/pyspec/eth_consensus_specs/test/phase0/unittests/validator/test_validator_unittest.py +++ b/tests/core/pyspec/eth_consensus_specs/test/phase0/unittests/validator/test_validator_unittest.py @@ -1,7 +1,6 @@ import random from eth_consensus_specs.test.context import ( - always_bls, single_phase, spec_state_test, spec_state_test_with_matching_config, @@ -323,7 +322,6 @@ def test_compute_new_state_root(spec, state): @with_all_phases @spec_state_test -@always_bls def test_get_block_signature(spec, state): privkey = privkeys[0] pubkey = pubkeys[0] @@ -365,7 +363,6 @@ def test_compute_fork_digest(spec, state): @with_all_phases @spec_state_test -@always_bls def test_get_attestation_signature_phase0(spec, state): privkey = privkeys[0] pubkey = pubkeys[0] @@ -409,7 +406,6 @@ def test_compute_subnet_for_attestation(spec, state): @with_all_phases @spec_state_test -@always_bls def test_get_slot_signature(spec, state): privkey = privkeys[0] pubkey = pubkeys[0] @@ -428,7 +424,6 @@ def test_get_slot_signature(spec, state): @with_all_phases @spec_state_test -@always_bls def test_is_aggregator(spec, state): # TODO: we can test the probabilistic result against `TARGET_AGGREGATORS_PER_COMMITTEE` # if we have more validators and larger committee size @@ -447,7 +442,6 @@ def test_is_aggregator(spec, state): @with_phases([PHASE0]) @spec_state_test -@always_bls def test_get_aggregate_signature(spec, state): attestations = [] attesting_pubkeys = [] @@ -483,7 +477,6 @@ def test_get_aggregate_signature(spec, state): @with_all_phases @spec_state_test -@always_bls def test_get_aggregate_and_proof(spec, state): privkey = privkeys[0] aggregator_index = spec.ValidatorIndex(10) @@ -498,7 +491,6 @@ def test_get_aggregate_and_proof(spec, state): @with_all_phases @spec_state_test -@always_bls def test_get_aggregate_and_proof_signature(spec, state): privkey = privkeys[0] pubkey = pubkeys[0] diff --git a/tests/infra/block_randomized.py b/tests/infra/block_randomized.py index 94bdc5260d..f90fd87f0d 100644 --- a/tests/infra/block_randomized.py +++ b/tests/infra/block_randomized.py @@ -217,7 +217,6 @@ class ScenarioRenderer: only_generator, ) from eth_consensus_specs.test.context import ( - always_bls, spec_test, with_custom_state, single_phase, @@ -235,7 +234,6 @@ class ScenarioRenderer: ) @spec_test @single_phase -@always_bls def test_randomized_{index}(spec, state): # scenario as high-level, informal text: {name_as_comment}