Skip to content

Commit

Permalink
Add configuration value checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Nov 23, 2021
1 parent 64b4ca2 commit e2c396c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@ def test_time(spec, state):
@spec_state_test
def test_networking(spec, state):
assert spec.RANDOM_SUBNETS_PER_VALIDATOR <= spec.ATTESTATION_SUBNET_COUNT


@with_all_phases
@spec_state_test
def test_fork_choice(spec, state):
assert spec.INTERVALS_PER_SLOT < spec.SECONDS_PER_SLOT
assert spec.config.PROPOSER_SCORE_BOOST <= 100

0 comments on commit e2c396c

Please sign in to comment.