Skip to content

Commit

Permalink
now keeping a constant with fork versions in multiple networks since …
Browse files Browse the repository at this point in the history
…0x3 is not necessary capella
  • Loading branch information
concentricspheres committed Mar 21, 2024
1 parent 8f7859b commit 232759a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eth_jit_exiter/signer_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 232759a

Please sign in to comment.