mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
Add more checks
This commit is contained in:
parent
69f2a31406
commit
b5f9b5d74f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user