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
9139f4b4
Unverified
Commit
9139f4b4
authored
Apr 23, 2024
by
Barnabas Busa
Committed by
GitHub
Apr 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: participant redefining global flag (#573)
parent
f7887aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
37 deletions
+24
-37
README.md
README.md
+8
-8
input_parser.star
src/package_io/input_parser.star
+16
-29
No files found.
README.md
View file @
9139f4b4
...
@@ -401,16 +401,16 @@ participants:
...
@@ -401,16 +401,16 @@ participants:
count
:
1
count
:
1
# Snooper can be enabled with the `snooper_enabled` flag per client or globally
# Snooper can be enabled with the `snooper_enabled` flag per client or globally
# Defaults
to false
# Defaults
null and then set to global snooper default (false)
snooper_enabled
:
false
snooper_enabled
:
null
# Enables Ethereum Metrics Exporter for this participant. Can be set globally.
# Enables Ethereum Metrics Exporter for this participant. Can be set globally.
# Defaults
to false
# Defaults
null and then set to global ethereum_metrics_exporter_enabled (false)
ethereum_metrics_exporter_enabled
:
false
ethereum_metrics_exporter_enabled
:
null
# Enables Xatu Sentry for this participant. Can be set globally.
# Enables Xatu Sentry for this participant. Can be set globally.
# Defaults
to false
# Defaults
null and then set to global xatu_sentry_enabled (false)
xatu_sentry_enabled
:
false
xatu_sentry_enabled
:
null
# Prometheus additional configuration for a given participant prometheus target.
# Prometheus additional configuration for a given participant prometheus target.
# Execution, beacon and validator client targets on prometheus will include this
# Execution, beacon and validator client targets on prometheus will include this
...
@@ -443,8 +443,8 @@ participants:
...
@@ -443,8 +443,8 @@ participants:
# Participant flag for keymanager api
# Participant flag for keymanager api
# This will open up http ports to your validator services!
# This will open up http ports to your validator services!
# Defaults
to false
# Defaults
null and then set to default global keymanager_enabled (false)
keymanager_enabled
:
false
keymanager_enabled
:
null
# Default configuration parameters for the network
# Default configuration parameters for the network
network_params
:
network_params
:
...
...
src/package_io/input_parser.star
View file @
9139f4b4
...
@@ -425,53 +425,40 @@ def parse_network_params(input_args):
...
@@ -425,53 +425,40 @@ def parse_network_params(input_args):
participant["vc_image"] = default_image
participant["vc_image"] = default_image
snooper_enabled = participant["snooper_enabled"]
snooper_enabled = participant["snooper_enabled"]
if snooper_enabled == False:
if snooper_enabled == None:
default_snooper_enabled = result["snooper_enabled"]
participant["snooper_enabled"] = result["snooper_enabled"]
if default_snooper_enabled:
participant["snooper_enabled"] = default_snooper_enabled
keymanager_enabled = participant["keymanager_enabled"]
keymanager_enabled = participant["keymanager_enabled"]
if keymanager_enabled == False:
if keymanager_enabled == None:
default_keymanager_enabled = result["keymanager_enabled"]
participant["keymanager_enabled"] = result["keymanager_enabled"]
if default_keymanager_enabled:
participant["keymanager_enabled"] = default_keymanager_enabled
ethereum_metrics_exporter_enabled = participant[
ethereum_metrics_exporter_enabled = participant[
"ethereum_metrics_exporter_enabled"
"ethereum_metrics_exporter_enabled"
]
]
if ethereum_metrics_exporter_enabled == None:
participant["ethereum_metrics_exporter_enabled"] = result[
"ethereum_metrics_exporter_enabled"
]
xatu_sentry_enabled = participant["xatu_sentry_enabled"]
xatu_sentry_enabled = participant["xatu_sentry_enabled"]
if xatu_sentry_enabled == None:
participant["xatu_sentry_enabled"] = result["xatu_sentry_enabled"]
blobber_enabled = participant["blobber_enabled"]
blobber_enabled = participant["blobber_enabled"]
if blobber_enabled:
if blobber_enabled:
# unless we are running lighthouse, we don't support blobber
# unless we are running lighthouse, we don't support blobber
if participant["cl_type"] !=
"lighthouse"
:
if participant["cl_type"] !=
constants.CL_TYPE.lighthouse
:
fail(
fail(
"blobber is not supported for {0} client".format(
"blobber is not supported for {0} client".format(
participant["cl_type"]
participant["cl_type"]
)
)
)
)
if ethereum_metrics_exporter_enabled == False:
default_ethereum_metrics_exporter_enabled = result[
"ethereum_metrics_exporter_enabled"
]
if default_ethereum_metrics_exporter_enabled:
participant[
"ethereum_metrics_exporter_enabled"
] = default_ethereum_metrics_exporter_enabled
if xatu_sentry_enabled == False:
default_xatu_sentry_enabled = result["xatu_sentry_enabled"]
if default_xatu_sentry_enabled:
participant["xatu_sentry_enabled"] = default_xatu_sentry_enabled
validator_count = participant["validator_count"]
validator_count = participant["validator_count"]
if validator_count == None:
if validator_count == None:
default_validator_count
= result["network_params"][
participant["validator_count"]
= result["network_params"][
"num_validator_keys_per_node"
"num_validator_keys_per_node"
]
]
participant["validator_count"] = default_validator_count
actual_num_validators += participant["validator_count"]
actual_num_validators += participant["validator_count"]
...
@@ -692,9 +679,9 @@ def default_participant():
...
@@ -692,9 +679,9 @@ def default_participant():
"node_selectors": {},
"node_selectors": {},
"tolerations": [],
"tolerations": [],
"count": 1,
"count": 1,
"snooper_enabled":
Fals
e,
"snooper_enabled":
Non
e,
"ethereum_metrics_exporter_enabled":
Fals
e,
"ethereum_metrics_exporter_enabled":
Non
e,
"xatu_sentry_enabled":
Fals
e,
"xatu_sentry_enabled":
Non
e,
"prometheus_config": {
"prometheus_config": {
"scrape_interval": "15s",
"scrape_interval": "15s",
"labels": None,
"labels": None,
...
@@ -702,7 +689,7 @@ def default_participant():
...
@@ -702,7 +689,7 @@ def default_participant():
"blobber_enabled": False,
"blobber_enabled": False,
"blobber_extra_params": [],
"blobber_extra_params": [],
"builder_network_params": None,
"builder_network_params": None,
"keymanager_enabled":
Fals
e,
"keymanager_enabled":
Non
e,
}
}
...
...
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