Skip to content

Commit

Permalink
feat: fail if nodes < 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderheijden86 committed May 19, 2024
1 parent 7be168f commit d54a1c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ def parse_input(input_args):
result = get_default_input_args()
for attr in input_args:
result[attr] = input_args[attr]
if result["node_count"] < 2:
fail("node_count must be at least 2")
result["num_validators"] = result.get("num_validators", result["node_count"])
return result

Expand Down

0 comments on commit d54a1c6

Please sign in to comment.