From bdd7b0782ec72afd59e3cd188712b36f93aab863 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Tue, 23 Nov 2021 16:26:11 +0800 Subject: [PATCH] Add configuration value checks --- .../test/phase0/unittests/test_config_invariants.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py b/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py index 3183904c8..8836d463e 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py +++ b/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py @@ -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.config.SECONDS_PER_SLOT + assert spec.config.PROPOSER_SCORE_BOOST <= 100