Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cl/cl_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def launch(

cl_service_name = "cl-{0}-{1}-{2}".format(index_str, cl_type, el_type)
new_cl_node_validator_keystores = None
if participant.validator_count != 0:
if participant.validator_count != 0 and participant.vc_count != 0:
new_cl_node_validator_keystores = preregistered_validator_keys_for_nodes[
index
]
Expand Down
3 changes: 2 additions & 1 deletion src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ def parse_network_params(plan, input_args):

# If the num validator keys per node is not divisible by vc_count of a participant, fail
if (
result["network_params"]["num_validator_keys_per_node"]
participant["vc_count"] > 0
and result["network_params"]["num_validator_keys_per_node"]
% participant["vc_count"]
!= 0
):
Expand Down
5 changes: 4 additions & 1 deletion src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ def launch_participant_network(

el_context = all_el_contexts[index]
cl_context = all_cl_contexts[index]
vc_context = all_vc_contexts[index]
if participant.vc_count != 0:
vc_context = all_vc_contexts[index]
else:
vc_context = None

if participant.snooper_enabled:
snooper_engine_context = all_snooper_engine_contexts[index]
Expand Down