From 1af2992f6f5216ccb2cfb9b58af94b99e4f783b0 Mon Sep 17 00:00:00 2001 From: eth2353 <70237279+eth2353@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:32:22 +0100 Subject: [PATCH] Do not launch validator service if no keystores --- src/participant_network.star | 5 ++--- src/validator_client/validator_client_launcher.star | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/participant_network.star b/src/participant_network.star index f9eca376e..4e920586b 100644 --- a/src/participant_network.star +++ b/src/participant_network.star @@ -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 = [] diff --git a/src/validator_client/validator_client_launcher.star b/src/validator_client/validator_client_launcher.star index b65ce4ffd..2d0fbcc09 100644 --- a/src/validator_client/validator_client_launcher.star +++ b/src/validator_client/validator_client_launcher.star @@ -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 )