mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-01 05:14:49 +00:00
Merge pull request #2331 from BenSchZA/BenSchZA-patch-1
Update variable name ALTAIR_INVAIANT_CHECKS to INVARIANT in `setup.py`
This commit is contained in:
commit
2ac19be198
4
setup.py
4
setup.py
@ -329,7 +329,7 @@ ALTAIR_HARDCODED_SSZ_DEP_CONSTANTS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ALTAIR_INVAIANT_CHECKS = '''
|
ALTAIR_INVARIANT_CHECKS = '''
|
||||||
assert (
|
assert (
|
||||||
TIMELY_HEAD_WEIGHT + TIMELY_SOURCE_WEIGHT + TIMELY_TARGET_WEIGHT + SYNC_REWARD_WEIGHT + PROPOSER_WEIGHT
|
TIMELY_HEAD_WEIGHT + TIMELY_SOURCE_WEIGHT + TIMELY_TARGET_WEIGHT + SYNC_REWARD_WEIGHT + PROPOSER_WEIGHT
|
||||||
) == WEIGHT_DENOMINATOR'''
|
) == WEIGHT_DENOMINATOR'''
|
||||||
@ -414,7 +414,7 @@ def objects_to_spec(spec_object: SpecObject, imports: str, fork: str, ordered_cl
|
|||||||
if is_altair(fork):
|
if is_altair(fork):
|
||||||
altair_ssz_dep_constants_verification = '\n'.join(map(lambda x: 'assert %s == %s' % (x, spec_object.ssz_dep_constants[x]), ALTAIR_HARDCODED_SSZ_DEP_CONSTANTS))
|
altair_ssz_dep_constants_verification = '\n'.join(map(lambda x: 'assert %s == %s' % (x, spec_object.ssz_dep_constants[x]), ALTAIR_HARDCODED_SSZ_DEP_CONSTANTS))
|
||||||
spec += '\n\n\n' + altair_ssz_dep_constants_verification
|
spec += '\n\n\n' + altair_ssz_dep_constants_verification
|
||||||
spec += '\n' + ALTAIR_INVAIANT_CHECKS
|
spec += '\n' + ALTAIR_INVARIANT_CHECKS
|
||||||
|
|
||||||
spec += '\n'
|
spec += '\n'
|
||||||
return spec
|
return spec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user