Commit fd26e5c3 authored by Gyanendra Mishra's avatar Gyanendra Mishra Committed by GitHub

fix: added supprot for boot enr file (#456)

parent 5ae56a17
...@@ -349,9 +349,8 @@ def get_beacon_config( ...@@ -349,9 +349,8 @@ def get_beacon_config(
) )
cmd.append( cmd.append(
"--bootstrap-node=" "--bootstrap-node="
+ shared_utils.get_devnet_enr( + constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
plan, el_cl_genesis_data.files_artifact_uuid + "/boot_enr.yaml"
)
) )
else: # Public network else: # Public network
cmd.append("--{}".format(network)) cmd.append("--{}".format(network))
......
...@@ -107,22 +107,6 @@ print(",".join(bootnodes), end="") ...@@ -107,22 +107,6 @@ print(",".join(bootnodes), end="")
return enr_list.output return enr_list.output
# Prysm and Nimbus needs to have the enrs in a list format
# Can't figure out how to pass each item as a list, as I can't return an array from the starlark function
# So for now I'm just returning the last item in the list
def get_devnet_enr(plan, filename):
enr_items = plan.run_python(
files={constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: filename},
wait=None,
run="""
with open("/network-configs/network-configs/bootstrap_nodes.txt") as bootnode_file:
last_enr = bootnode_file.read().splitlines()[-1]
print(last_enr, end="")
""",
)
return enr_items.output
def read_genesis_timestamp_from_config(plan, filename): def read_genesis_timestamp_from_config(plan, filename):
value = plan.run_python( value = plan.run_python(
files={constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: filename}, files={constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: filename},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment