Skip to content

Commit 555ad7d

Browse files
authored
fix: enable single node mode on lodestar by default (ethereum#558)
1 parent d8dfbae commit 555ad7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/package_io/input_parser.star

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,14 @@ def parse_network_params(input_args):
483483

484484
total_participant_count += participant["count"]
485485

486+
487+
if total_participant_count == 1:
488+
for index, participant in enumerate(result["participants"]):
489+
# If there is only one participant, we run lodestar as a single node mode
490+
if participant["cl_type"] == constants.CL_TYPE.lodestar:
491+
participant["cl_extra_params"].append("--sync.isSingleNode")
492+
participant["cl_extra_params"].append("--network.allowPublishToZeroPeers")
493+
486494
if result["network_params"]["network_id"].strip() == "":
487495
fail("network_id is empty or spaces it needs to be of non zero length")
488496

0 commit comments

Comments
 (0)