mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 13:55:01 -05:00
Add more checks
This commit is contained in:
@@ -15,3 +15,9 @@ def test_weight_denominator(spec, state):
|
||||
+ spec.SYNC_REWARD_WEIGHT
|
||||
+ spec.PROPOSER_WEIGHT
|
||||
) == spec.WEIGHT_DENOMINATOR
|
||||
|
||||
|
||||
@with_phases([ALTAIR])
|
||||
@spec_state_test
|
||||
def test_inactivity_score(spec, state):
|
||||
assert spec.config.INACTIVITY_SCORE_BIAS <= spec.config.INACTIVITY_SCORE_RECOVERY_RATE
|
||||
|
||||
@@ -47,3 +47,9 @@ def test_incentives(spec, state):
|
||||
@spec_state_test
|
||||
def test_time(spec, state):
|
||||
assert spec.SLOTS_PER_EPOCH <= spec.SLOTS_PER_HISTORICAL_ROOT
|
||||
|
||||
|
||||
@with_all_phases
|
||||
@spec_state_test
|
||||
def test_networking(spec, state):
|
||||
assert spec.RANDOM_SUBNETS_PER_VALIDATOR <= spec.ATTESTATION_SUBNET_COUNT
|
||||
|
||||
Reference in New Issue
Block a user