Skip to content

Commit

Permalink
fix: use eth maintained tx-fuzz (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Aug 10, 2023
1 parent 5540587 commit b0903bd
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/transaction_spammer/transaction_spammer.star
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
IMAGE_NAME = "kurtosistech/tx-fuzz:0.2.0"
IMAGE_NAME = "ethpandaops/tx-fuzz:latest"
SERVICE_NAME = "transaction-spammer"

def launch_transaction_spammer(plan, prefunded_addresses, el_client_context):
Expand All @@ -10,19 +10,12 @@ def get_config(prefunded_addresses, el_client_context):
private_keys_strs = []
address_strs = []

for prefunded_address in prefunded_addresses:
private_keys_strs.append(prefunded_address.private_key)
address_strs.append(prefunded_address.address)

comma_separated_private_keys = ",".join(private_keys_strs)
comma_separated_addresses = ",".join(address_strs)
return ServiceConfig(
image = IMAGE_NAME,
cmd = [
"http://{0}:{1}".format(el_client_context.ip_addr, el_client_context.rpc_port_num),
"spam",
comma_separated_private_keys,
comma_separated_addresses
"--rpc=http://{0}:{1}".format(el_client_context.ip_addr, el_client_context.rpc_port_num),
"--sk={0}".format(prefunded_addresses[0].private_key),
]
)

0 comments on commit b0903bd

Please sign in to comment.