Skip to content

Commit 709b4ad

Browse files
authored
fix: tx-spammer extra args (#394)
1 parent 8959fc8 commit 709b4ad

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/transaction_spammer/transaction_spammer.star

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ def get_config(prefunded_addresses, el_uri, tx_spammer_extra_args, electra_fork_
2020
tx_spammer_image = "ethpandaops/tx-fuzz:kaustinen-281adbc"
2121
else:
2222
tx_spammer_image = "ethpandaops/tx-fuzz:master"
23+
24+
cmd = [
25+
"spam",
26+
"--rpc={}".format(el_uri),
27+
"--sk={0}".format(prefunded_addresses[3].private_key),
28+
]
29+
30+
if len(tx_spammer_extra_args) > 0:
31+
cmd.extend([param for param in tx_spammer_extra_args])
32+
2333
return ServiceConfig(
2434
image=tx_spammer_image,
25-
cmd=[
26-
"spam",
27-
"--rpc={}".format(el_uri),
28-
"--sk={0}".format(prefunded_addresses[3].private_key),
29-
"{0}".format(" ".join(tx_spammer_extra_args)),
30-
],
35+
cmd=cmd,
3136
)

0 commit comments

Comments
 (0)