Skip to content

Commit

Permalink
support both type options
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Sep 13, 2024
1 parent 820eb68 commit 03fba81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testground/benchmark/benchmark/stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def gen(
hostname_template=HOSTNAME_TEMPLATE,
options={},
):
if isinstance(options, str):
options = json.loads(options)
print("options", options)
validators = options.get("validators", 3)
fullnodes = options.get("fullnodes", 7)
Expand Down

0 comments on commit 03fba81

Please sign in to comment.