Commit b0903bda authored by Gyanendra Mishra's avatar Gyanendra Mishra Committed by GitHub

fix: use eth maintained tx-fuzz (#110)

parent 55405874
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):
......@@ -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),
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment