Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vc_count bad index #794

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
12 changes: 12 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,18 @@ def parse_network_params(plan, input_args):
+ participant["cl_type"],
)
)
if participant["vc_count"] > 1 and participant["use_separate_vc"] != True:
fail(
"vc_count is set to {0} but use_separate_vc is set to {1} for participant: {2}. You have to use use_separate_vc = True for teku/nimbus if you want to set vc_count.".format(
participant["vc_count"],
participant["use_separate_vc"],
str(index + 1)
+ "-"
+ participant["el_type"]
+ "-"
+ participant["cl_type"],
)
)

snooper_enabled = participant["snooper_enabled"]
if snooper_enabled == None:
Expand Down
7 changes: 1 addition & 6 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,7 @@ def launch_participant_network(

vc_keystores = None
if participant.validator_count != 0:
if participant.vc_count == 1:
vc_keystores = preregistered_validator_keys_for_nodes[index]
else:
vc_keystores = preregistered_validator_keys_for_nodes[
index + sub_index
]
vc_keystores = preregistered_validator_keys_for_nodes[current_vc_index]

vc_context = None
snooper_beacon_context = None
Expand Down
Loading