Skip to content

Commit

Permalink
fix: tx-spammer extra args (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 6, 2023
1 parent 8959fc8 commit 709b4ad
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/transaction_spammer/transaction_spammer.star
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ def get_config(prefunded_addresses, el_uri, tx_spammer_extra_args, electra_fork_
tx_spammer_image = "ethpandaops/tx-fuzz:kaustinen-281adbc"
else:
tx_spammer_image = "ethpandaops/tx-fuzz:master"

cmd = [
"spam",
"--rpc={}".format(el_uri),
"--sk={0}".format(prefunded_addresses[3].private_key),
]

if len(tx_spammer_extra_args) > 0:
cmd.extend([param for param in tx_spammer_extra_args])

return ServiceConfig(
image=tx_spammer_image,
cmd=[
"spam",
"--rpc={}".format(el_uri),
"--sk={0}".format(prefunded_addresses[3].private_key),
"{0}".format(" ".join(tx_spammer_extra_args)),
],
cmd=cmd,
)

0 comments on commit 709b4ad

Please sign in to comment.