Commit 555ad7dc authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

fix: enable single node mode on lodestar by default (#558)

parent d8dfbae5
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment