Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,21 @@ def input_parser(plan, input_args):

if result["network_params"]["fulu_fork_epoch"] != constants.FAR_FUTURE_EPOCH:
has_supernodes = False
num_perfect_peerdas_participants = 0
for participant in result["participants"]:
num_perfect_peerdas_participants += 1
if participant.get("supernode", False):
has_supernodes = True
break

if result["network_params"]["perfect_peerdas_enabled"]:
if num_perfect_peerdas_participants < 16:
fail(
"perfect_peerdas_enabled is true (this is a unique test if you don't know what it does, consider removing it) but the number of participants ({0}) is less than 16. Please set the number of participants to at least 16.".format(
str(num_perfect_peerdas_participants)
)
)

if (
not has_supernodes
and not result["network_params"]["perfect_peerdas_enabled"]
Expand Down