Skip to content

Commit a06f1a9

Browse files
authored
Merge branch 'main' into top_tps
2 parents 03fba81 + d212111 commit a06f1a9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

testground/benchmark/benchmark/stateless.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def gen(
9898
"fullnodes": fullnodes,
9999
"num_accounts": num_accounts,
100100
"num_txs": num_txs,
101+
"validator-generate-load": options.get("validator-generate-load", True),
101102
}
102103
(outdir / "config.json").write_text(json.dumps(cfg))
103104

@@ -157,10 +158,12 @@ def run(
157158
wait_for_port(26657)
158159
wait_for_port(8545)
159160
wait_for_block(cli, 3)
160-
wait_for_w3()
161-
generate_load(
162-
cli, cfg["num_accounts"], cfg["num_txs"], home=home, output="json"
163-
)
161+
162+
if group == FULLNODE_GROUP or cfg.get("validator-generate-load", True):
163+
wait_for_w3()
164+
generate_load(
165+
cli, cfg["num_accounts"], cfg["num_txs"], home=home, output="json"
166+
)
164167

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

0 commit comments

Comments
 (0)