Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
fd26e5c3
Unverified
Commit
fd26e5c3
authored
Jan 11, 2024
by
Gyanendra Mishra
Committed by
GitHub
Jan 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: added supprot for boot enr file (#456)
parent
5ae56a17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
prysm_launcher.star
src/cl/prysm/prysm_launcher.star
+2
-3
shared_utils.star
src/shared_utils/shared_utils.star
+0
-16
No files found.
src/cl/prysm/prysm_launcher.star
View file @
fd26e5c3
...
@@ -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))
...
...
src/shared_utils/shared_utils.star
View file @
fd26e5c3
...
@@ -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},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment