Skip to content

Commit

Permalink
Do not launch validator service if no keystores
Browse files Browse the repository at this point in the history
  • Loading branch information
eth2353 committed Feb 23, 2024
1 parent c52f40d commit 1af2992
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,8 @@ def launch_participant_network(
)
all_validator_client_contexts.append(validator_client_context)

metrics_info = validator_client_context.metrics_info
if metrics_info != None:
metrics_info["config"] = participant.prometheus_config
if validator_client_context and validator_client_context.metrics_info:
validator_client_context.metrics_info["config"] = participant.prometheus_config

all_participants = []

Expand Down
3 changes: 3 additions & 0 deletions src/validator_client/validator_client_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def launch(
global_tolerations,
node_selectors,
):
if node_keystore_files == None:
return None

tolerations = input_parser.get_client_tolerations(
validator_tolerations, participant_tolerations, global_tolerations
)
Expand Down

0 comments on commit 1af2992

Please sign in to comment.