Skip to content

Commit

Permalink
Merge branch 'main' into top_tps
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Sep 13, 2024
2 parents 03fba81 + d212111 commit a06f1a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions testground/benchmark/benchmark/stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def gen(
"fullnodes": fullnodes,
"num_accounts": num_accounts,
"num_txs": num_txs,
"validator-generate-load": options.get("validator-generate-load", True),
}
(outdir / "config.json").write_text(json.dumps(cfg))

Expand Down Expand Up @@ -157,10 +158,12 @@ def run(
wait_for_port(26657)
wait_for_port(8545)
wait_for_block(cli, 3)
wait_for_w3()
generate_load(
cli, cfg["num_accounts"], cfg["num_txs"], home=home, output="json"
)

if group == FULLNODE_GROUP or cfg.get("validator-generate-load", True):
wait_for_w3()
generate_load(
cli, cfg["num_accounts"], cfg["num_txs"], home=home, output="json"
)

# node quit when the chain is idle or halted for a while
detect_idle_halted(20, 20)
Expand Down

0 comments on commit a06f1a9

Please sign in to comment.