From 35fea7a11b9239e23491f9abfc050d887c8dbd92 Mon Sep 17 00:00:00 2001 From: BenSchZA Date: Wed, 14 Apr 2021 21:37:25 +0200 Subject: [PATCH] Update copy INVAIANT to INVARIANT --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0a64307c0..0a95fbb5a 100644 --- a/setup.py +++ b/setup.py @@ -329,7 +329,7 @@ ALTAIR_HARDCODED_SSZ_DEP_CONSTANTS = { } -ALTAIR_INVAIANT_CHECKS = ''' +ALTAIR_INVARIANT_CHECKS = ''' assert ( TIMELY_HEAD_WEIGHT + TIMELY_SOURCE_WEIGHT + TIMELY_TARGET_WEIGHT + SYNC_REWARD_WEIGHT + PROPOSER_WEIGHT ) == WEIGHT_DENOMINATOR''' @@ -414,7 +414,7 @@ def objects_to_spec(spec_object: SpecObject, imports: str, fork: str, ordered_cl 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)) spec += '\n\n\n' + altair_ssz_dep_constants_verification - spec += '\n' + ALTAIR_INVAIANT_CHECKS + spec += '\n' + ALTAIR_INVARIANT_CHECKS spec += '\n' return spec