Skip to content

Commit

Permalink
fix: enable single node mode on lodestar by default (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Apr 15, 2024
1 parent d8dfbae commit 555ad7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,14 @@ def parse_network_params(input_args):

total_participant_count += participant["count"]


if total_participant_count == 1:
for index, participant in enumerate(result["participants"]):
# If there is only one participant, we run lodestar as a single node mode
if participant["cl_type"] == constants.CL_TYPE.lodestar:
participant["cl_extra_params"].append("--sync.isSingleNode")
participant["cl_extra_params"].append("--network.allowPublishToZeroPeers")

if result["network_params"]["network_id"].strip() == "":
fail("network_id is empty or spaces it needs to be of non zero length")

Expand Down

0 comments on commit 555ad7d

Please sign in to comment.