diff --git a/eth_jit_exiter/signer_server.py b/eth_jit_exiter/signer_server.py index f45736b..4fef74a 100644 --- a/eth_jit_exiter/signer_server.py +++ b/eth_jit_exiter/signer_server.py @@ -19,11 +19,12 @@ from py_ecc.bls.g2_primitives import G2_to_signature, signature_to_G2 from py_ecc.optimized_bls12_381.optimized_curve import add, multiply, Z2, curve_order -LOGGER = logging.getLogger() +app = Flask(__name__) +LOGGER = logging.getLogger() SLOTS_PER_EPOCH = 32 -app = Flask(__name__) CONFIG = {} +CAPELLA_FORK_VERSIONS = ["0x03000000", "0x04017000"] def lagrange_coefficient(i, indices, field_modulus): lc = 1 @@ -60,7 +61,7 @@ def get_beacon_data(): fork_schedule = requests.get(f"{CONFIG['beacon_node_url']}/eth/v1/config/fork_schedule").json()['data'] for schedule in fork_schedule: - if schedule['current_version'].startswith("0x03"): + if schedule['current_version'] in CAPELLA_FORK_VERSIONS: current_fork_version = schedule['current_version'] break