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
76f595b7
Commit
76f595b7
authored
Nov 04, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this seems okay
parent
049b7bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
main.star
main.star
+35
-2
No files found.
main.star
View file @
76f595b7
...
...
@@ -23,6 +23,15 @@ default_el_images = {
"besu": "hyperledger/besu:develop"
}
default_cl_images = {
"lighthouse": "sigp/lighthouse:latest",
"teku": "consensys/teku:latest",
"nimbus": "parithoshj/nimbus:merge-a845450",
"prysm": "gcr.io/prysmaticlabs/prysm/beacon-chain:latest,gcr.io/prysmaticlabs/prysm/validator:latest",
"lodestar": "chainsafe/lodestar:next",
}
# TODO check enum values are valid or make sure protobfu does
def replace_with_defaults(input_args):
default_input = default_module_input()
...
...
@@ -73,8 +82,32 @@ def replace_with_defaults(input_args):
for index, participant in enumerate(result["participants"]):
# this is really ugly we need some primitive to throw an error
if index == 0 and participant["el_client_type"] in ("besu", "nethermind"):
fail("besu/nethermind cant be the first participant")
el_client_type = participant["el_client_type"]
cl_client_type = participant["cl_client_type"]
if index == 0 and el_client_type in ("besu", "nethermind"):
fail("besu/nethermind cant be the first participant")
el_image = participant["el_client_image"]
if el_image == "":
default_image = default_el_images.get(el_client_type, "")
if default_image == "":
fail("{0} received an empty image name and we don't have a default for it".format(el_client_type))
participant["el_image"] = default_image
cl_image = participant["cl_client_image"]
if cl_image == "":
default_image = default_cl_images.get(cl_client_type, "")
if default_image == "":
fail("{0} received an empty image name and we don't have a default for it".format(cl_client_type))
participant["cl_image"] = default_image
beacon_extra_params = participant.get("beacon_extra_params", [])
participant["beacon_extra_params"] = beacon_extra_params
validator_extra_params = participant.get("validator_extra_params", [])
participant["beacon_extra_params"] = validator_extra_params
encoded_json = json.encode(result)
print(json.indent(encoded_json))
...
...
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