Skip to content

Commit

Permalink
fix: added supprot for boot enr file (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Jan 11, 2024
1 parent 5ae56a1 commit fd26e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
5 changes: 2 additions & 3 deletions src/cl/prysm/prysm_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,8 @@ def get_beacon_config(
)
cmd.append(
"--bootstrap-node="
+ shared_utils.get_devnet_enr(
plan, el_cl_genesis_data.files_artifact_uuid
)
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
+ "/boot_enr.yaml"
)
else: # Public network
cmd.append("--{}".format(network))
Expand Down
16 changes: 0 additions & 16 deletions src/shared_utils/shared_utils.star
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,6 @@ print(",".join(bootnodes), end="")
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):
value = plan.run_python(
files={constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: filename},
Expand Down

0 comments on commit fd26e5c

Please sign in to comment.