Skip to content

Commit

Permalink
Create eip7251 config invariants test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Mar 20, 2024
1 parent a127bbf commit 17d65ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from eth2spec.test.context import (
single_phase,
spec_test,
with_eip7251_and_later,
)


@with_eip7251_and_later
@spec_test
@single_phase
def test_withdrawals(spec):
assert spec.MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD < spec.MAX_WITHDRAWALS_PER_PAYLOAD
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from eth2spec.test.context import (
spec_state_test,
with_all_phases,
with_eip7251_and_later,
)
from eth2spec.test.helpers.constants import UINT64_MAX
from eth2spec.test.helpers.forks import (
Expand Down Expand Up @@ -92,9 +91,3 @@ def test_networking(spec, state):
def test_fork_choice(spec, state):
assert spec.INTERVALS_PER_SLOT < spec.config.SECONDS_PER_SLOT
assert spec.config.PROPOSER_SCORE_BOOST <= 100


@with_eip7251_and_later
@spec_state_test
def test_withdrawals(spec, state):
assert spec.MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD < spec.MAX_WITHDRAWALS_PER_PAYLOAD

0 comments on commit 17d65ca

Please sign in to comment.