Skip to content

Commit baa04e9

Browse files
fix: separate vc (#526)
Co-authored-by: Gyanendra Mishra <[email protected]>
1 parent f6e1b13 commit baa04e9

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ participants:
268268
# - nimbus: statusim/nimbus-eth2:multiarch-latest
269269
# - prysm: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
270270
# - lodestar: chainsafe/lodestar:next
271+
# - grandine: ethpandaops/grandine:develop
271272
cl_image: ""
272273

273274
# The log level string that this participant's CL client should log at

src/package_io/input_parser.star

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,14 @@ def parse_network_params(input_args):
384384
if participant["use_separate_vc"] == None:
385385
# Default to false for CL clients that can run validator clients
386386
# in the same process.
387-
if cl_type in (
388-
constants.CL_TYPE.nimbus,
389-
constants.CL_TYPE.teku,
390-
constants.CL_TYPE.grandine,
387+
if (
388+
cl_type
389+
in (
390+
constants.CL_TYPE.nimbus,
391+
constants.CL_TYPE.teku,
392+
constants.CL_TYPE.grandine,
393+
)
394+
and vc_type == ""
391395
):
392396
participant["use_separate_vc"] = False
393397
else:
@@ -398,12 +402,6 @@ def parse_network_params(input_args):
398402
vc_type = cl_type
399403
participant["vc_type"] = vc_type
400404

401-
if (
402-
cl_type == constants.CL_TYPE.grandine
403-
and vc_type != constants.CL_TYPE.grandine
404-
):
405-
fail("grandine does not support running a different validator client")
406-
407405
vc_image = participant["vc_image"]
408406
if vc_image == "":
409407
if cl_image == "":

src/participant_network.star

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -282,19 +282,8 @@ def launch_participant_network(
282282

283283
vc_context = None
284284
snooper_beacon_context = None
285-
if participant.snooper_enabled:
286-
if (
287-
participant.cl_type == constants.CL_TYPE.teku
288-
or participant.cl_type == constants.CL_TYPE.nimbus
289-
or participant.cl_type == constants.CL_TYPE.grandine
290-
) and participant.use_separate_vc != False:
291-
plan.print(
292-
"Beacon snooper not supported for non split operation for {0}".format(
293-
participant.cl_type
294-
)
295-
)
296-
continue
297285

286+
if participant.snooper_enabled:
298287
snooper_service_name = "snooper-beacon-{0}-{1}-{2}".format(
299288
index_str, cl_type, vc_type
300289
)

0 commit comments

Comments
 (0)