Skip to content

Commit

Permalink
fix: separate vc (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Gyanendra Mishra <anomaly.the@gmail.com>
  • Loading branch information
barnabasbusa and h4ck3rk3y authored Mar 28, 2024
1 parent f6e1b13 commit baa04e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ participants:
# - nimbus: statusim/nimbus-eth2:multiarch-latest
# - prysm: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
# - lodestar: chainsafe/lodestar:next
# - grandine: ethpandaops/grandine:develop
cl_image: ""
# The log level string that this participant's CL client should log at
Expand Down
18 changes: 8 additions & 10 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,14 @@ def parse_network_params(input_args):
if participant["use_separate_vc"] == None:
# Default to false for CL clients that can run validator clients
# in the same process.
if cl_type in (
constants.CL_TYPE.nimbus,
constants.CL_TYPE.teku,
constants.CL_TYPE.grandine,
if (
cl_type
in (
constants.CL_TYPE.nimbus,
constants.CL_TYPE.teku,
constants.CL_TYPE.grandine,
)
and vc_type == ""
):
participant["use_separate_vc"] = False
else:
Expand All @@ -398,12 +402,6 @@ def parse_network_params(input_args):
vc_type = cl_type
participant["vc_type"] = vc_type

if (
cl_type == constants.CL_TYPE.grandine
and vc_type != constants.CL_TYPE.grandine
):
fail("grandine does not support running a different validator client")

vc_image = participant["vc_image"]
if vc_image == "":
if cl_image == "":
Expand Down
13 changes: 1 addition & 12 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -282,19 +282,8 @@ def launch_participant_network(

vc_context = None
snooper_beacon_context = None
if participant.snooper_enabled:
if (
participant.cl_type == constants.CL_TYPE.teku
or participant.cl_type == constants.CL_TYPE.nimbus
or participant.cl_type == constants.CL_TYPE.grandine
) and participant.use_separate_vc != False:
plan.print(
"Beacon snooper not supported for non split operation for {0}".format(
participant.cl_type
)
)
continue

if participant.snooper_enabled:
snooper_service_name = "snooper-beacon-{0}-{1}-{2}".format(
index_str, cl_type, vc_type
)
Expand Down

0 comments on commit baa04e9

Please sign in to comment.