Skip to content

Commit

Permalink
fix: fixing too long graffitis (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 13, 2023
1 parent cb33648 commit a18935f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/cl/lighthouse/lighthouse_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ def get_validator_config(
"--metrics-allow-origin=*",
"--metrics-port={0}".format(VALIDATOR_METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ PROMETHEUS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + validator_node_service_name,
"--graffiti="
+ constants.CL_CLIENT_TYPE.lighthouse
+ "-"
+ el_client_context.client_name,
]

if len(extra_params):
Expand Down
5 changes: 4 additions & 1 deletion src/cl/lodestar/lodestar_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,10 @@ def get_validator_config(
"--metrics.address=0.0.0.0",
"--metrics.port={0}".format(METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ PROMETHEUS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + validator_node_service_name,
"--graffiti="
+ constants.CL_CLIENT_TYPE.lodestar
+ "-"
+ el_client_context.client_name,
]

if len(extra_params) > 0:
Expand Down
10 changes: 8 additions & 2 deletions src/cl/nimbus/nimbus_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ def get_beacon_config(
"--validators-dir=" + validator_keys_dirpath,
"--secrets-dir=" + validator_secrets_dirpath,
"--suggested-fee-recipient=" + constants.VALIDATING_REWARDS_ACCOUNT,
"--graffiti=" + beacon_node_service_name,
"--graffiti="
+ constants.CL_CLIENT_TYPE.nimbus
+ "-"
+ el_client_context.client_name,
]

if node_keystore_files != None and not split_mode_enabled:
Expand Down Expand Up @@ -421,7 +424,10 @@ def get_validator_config(
"--metrics",
"--metrics-address=0.0.0.0",
"--metrics-port={0}".format(VALIDATOR_METRICS_PORT_NUM),
"--graffiti=" + validator_node_service_name,
"--graffiti="
+ constants.CL_CLIENT_TYPE.nimbus
+ "-"
+ el_client_context.client_name,
]

if len(extra_params) > 0:
Expand Down
5 changes: 4 additions & 1 deletion src/cl/prysm/prysm_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,10 @@ def get_validator_config(
"--monitoring-host=0.0.0.0",
"--monitoring-port={0}".format(VALIDATOR_MONITORING_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--graffiti=" + service_name,
"--graffiti="
+ constants.CL_CLIENT_TYPE.prysm
+ "-"
+ el_client_context.client_name,
]

if len(extra_params) > 0:
Expand Down
5 changes: 4 additions & 1 deletion src/cl/teku/teku_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ def get_config(
"--metrics-port={0}".format(METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--Xtrusted-setup=" + constants.KZG_DATA_DIRPATH_ON_CLIENT_CONTAINER,
"--validators-graffiti=" + service_name,
"--validators-graffiti="
+ constants.CL_CLIENT_TYPE.teku
+ "-"
+ el_client_context.client_name,
]

# Depending on whether we're using a node keystore, we'll need to add the validator flags
Expand Down

0 comments on commit a18935f

Please sign in to comment.