From 3b2993c050172dec63c26d9b53c53fc7a77ad079 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Tue, 19 Sep 2023 17:01:20 +0200 Subject: [PATCH] fix: use the third address instead of coinbase for tx-fuzz (#185) --- README.md | 2 +- src/transaction_spammer/transaction_spammer.star | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d351f87f0..c124fa444 100644 --- a/README.md +++ b/README.md @@ -418,7 +418,7 @@ Here's a table of where the keys are used | Account Index| Component Used In | Private Key Used | Public Key Used | Comment | |----------------|---------------------|------------------|-----------------|----------------------------| -| 0 | transaction_spammer | ✅ | | To spam transactions with | +| 3 | transaction_spammer | ✅ | | To spam transactions with | | 0 | mev_flood | ✅ | | As the admin_key | | 2 | mev_flood | ✅ | | As the user_key | | 0 | mev_custom_flood | | ✅ | As the receiver of balance | diff --git a/src/transaction_spammer/transaction_spammer.star b/src/transaction_spammer/transaction_spammer.star index d41919620..58657d8f0 100644 --- a/src/transaction_spammer/transaction_spammer.star +++ b/src/transaction_spammer/transaction_spammer.star @@ -12,7 +12,7 @@ def get_config(prefunded_addresses, el_client_context): cmd = [ "spam", "--rpc=http://{0}:{1}".format(el_client_context.ip_addr, el_client_context.rpc_port_num), - "--sk={0}".format(prefunded_addresses[0].private_key), + "--sk={0}".format(prefunded_addresses[3].private_key), ] )