Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
2ac39eea
Commit
2ac39eea
authored
Nov 02, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added transaction spammer
parent
9a76ad36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
README.md
README.md
+1
-1
transaction_spammer.star
src/transaction_spammer/transaction_spammer.star
+28
-0
No files found.
README.md
View file @
2ac39eea
...
...
@@ -12,7 +12,7 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
-
[
x
]
grafana (this is blocked on prometheus running)
-
[
]
grafana needs an upload files endpoint in Startosis
-
[
x
]
testnet_verifier (this is blocked on CL/EL clients running)
-
[
]
transaction_spammer (this is blocked on EL clients running)
-
[
x
]
transaction_spammer (this is blocked on EL clients running)
-
[
]
participant_network/participant_network
-
[
]
has most data generation things, needs to start EL/CL clients
-
[
]
needs upload files to be implemented
...
...
src/transaction_spammer/transaction_spammer.star
0 → 100644
View file @
2ac39eea
IMAGE_NAME = "kurtosistech/tx-fuzz:0.2.0"
SERVICE_ID = "transaction-spammer"
def launch_transaction_spammer(prefunded_addresses, el_client_context):
service_config = get_service_config(prefunded_addresses, el_client_context)
add_service(SERVICE_ID, service_config)
def get_service_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 struct(
container_image_name = IMAGE_NAME,
cmd_args = [
"http://{0}:{1}".fomrat(el_client_context.ip_addr, el_client_context.rpc_port_num),
"spam",
comma_separated_private_keys,
comma_separated_addresses
]
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment