-
Notifications
You must be signed in to change notification settings - Fork 392
feat(testing): Task Sender / Stress Tester #1189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 27 commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
012cf22
add task sender
PatStiles 121dd87
add toolchain
PatStiles adf2257
feat(batcher-task-sender): only connect to server
MarcosNicolau 98633d1
refactor: using tasks instead of theads as it is too much overhead
MarcosNicolau 5a714b2
refactor: task sender to allow sending proofs and connections
MarcosNicolau 5378710
chore: makefile test connections
MarcosNicolau 8817c81
feat: action arg for generate-proofs, infinite-proofs, test-connection
MarcosNicolau 7e5be9c
feat: clean proofs
MarcosNicolau fe52343
feat: multiple senders infinite-proofs
MarcosNicolau 0055d01
fix: deposit to aligned
MarcosNicolau b31a095
fix: burst_size makefile
MarcosNicolau 220df4e
feat: generate and fund wallets
MarcosNicolau 23e967b
feat: loading wallets form files
MarcosNicolau a54ea3c
chore: address clippy warnings
MarcosNicolau 654c0ec
chore: update task sender targets
MarcosNicolau 963fcc3
fix: hang connections
MarcosNicolau c4a6c33
feat: params for deposit and number of proofs
MarcosNicolau 87fce78
refactor: store private key as a string
MarcosNicolau 15ac8a7
feat: read/write wallets from one file
MarcosNicolau 73a7d19
chore: task sender for holesky
MarcosNicolau 45ee17b
refactor(task-sender): add subcommands structs
MarcosNicolau bb927bc
reafactor(task-sender): commands
MarcosNicolau 7fbc7ec
feat: accept output dir in generate groth16 proofs
MarcosNicolau 274629b
reafactor(task-sender): main program calls lib
MarcosNicolau d0e3794
refactor(task-sender): get generated verification data and logs
MarcosNicolau 451ebc2
fix(task-sender): commdands arguments
MarcosNicolau a4f2f9f
chore: task sender update makefile
MarcosNicolau b11baae
fix: makefile
uri-99 30ab36e
feat: add simple readme of stress tester
uri-99 ff4ca6e
fix: on commands.rs
uri-99 de2cc98
refactor: add `send` to infinite_proofs
uri-99 e94ac7c
Merge remote-tracking branch 'origin/staging' into 1015-task-sender
uri-99 46a7b6e
fix: task sender file and nonce reading
uri-99 0b10cd5
fix: get proofs until batch_size is filled
uri-99 5940660
fix: stress tester funding wallets in devnet
uri-99 d6f4a95
fix: on task sender
uri-99 4458e1d
feat: add devnet private keys
uri-99 fe29225
fix: comment on readme
uri-99 e678783
chore: clippy and fmt
MarcosNicolau 8dc80d8
feat: add new types to ValidityResponseMessage
uri-99 6b707bf
Merge remote-tracking branch 'origin/1314-fix-sender-receive-batchinc…
uri-99 4665a82
chore: cargo lock
uri-99 4784118
fix: separate anvil_start_with_more_prefunded
uri-99 2a3b46c
fix: task sender readme
uri-99 115950d
remove: senders to holesky
uri-99 8011158
refactor: send_message, receive and process_batch_inclusion_data
uri-99 d78960e
refactor: new calls to refactored functions, avoiding 2 listening events
uri-99 9e9ab02
refactor: consolidate ValidityResponseMessage into ResponseMessage
uri-99 b64bcb6
fix: compilation errors
uri-99 c6fbc11
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 88bc36f
feat: new version with tokio join
uri-99 5298915
feat: messaging.rs with channels for new version with join
uri-99 728c838
refactor: handle_batch_inclusion_data receives single element for new…
uri-99 b82ab64
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 9643edc
fix: detail
uri-99 3266ade
fix: remove unpaying address from devnet wallets
uri-99 de91065
feat: start batcher without funding
uri-99 efbc46c
feat: add ReplacementMessageReceived msg from batcher
uri-99 ff9cf81
fix: detail on sdk
uri-99 ce07c08
feat: handle channel errors
uri-99 413d3cd
feat: sequencial send msg and recv response
uri-99 b04ce50
remove: replacement_message_received message
uri-99 2b21071
feat: add user_nonce on batch response
uri-99 666cfe5
refactor: send() and receive() to use storage instead of channel
uri-99 d66ed15
refactor: provess_batcher_response() and verify_proof_inclusion()
uri-99 1469c7d
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 bcb68f5
fix: details on fund_devnet and read_proofs
uri-99 0de8d9b
feat: check latest nonce response to know when to cut the connection
uri-99 5c1bead
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 95592ee
refactor: make fund devnet target
uri-99 18de39a
fix: better batcher log with nonce error
uri-99 f3bc8b7
feat: better tx revert error
uri-99 1026494
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 57615c4
chore: improve comments
uri-99 42ec9f0
chore: cargo fmt
uri-99 b977c25
Merge branch 'staging' into 1314-fix-sender-receive-batchinclusiondat…
uri-99 2e94f49
chore: cargo clippy
uri-99 04db964
chore: update anvil states
uri-99 09c3813
fix: build anvil state with correct version
uri-99 a205f34
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 ca51f3d
chore: details
uri-99 0ced4dc
chore: devnet wallets
uri-99 d944f4f
fix: use correct ethers version in sender
uri-99 397a4f7
fix: remove dead make target
uri-99 cc0f71a
remove: unused struct
uri-99 c8ea291
chore: cargo fmt in task-sender
uri-99 8a0aa67
chore: cargo clippy
uri-99 c0390b1
Fix Typo
MauroToscano 1d96ddc
refactor: reverse sent_verification_data array for cheaper remove
uri-99 8305ddc
chore: cargo.lock
uri-99 4a6c6ca
refactor: better logs
uri-99 5a43143
feat: build and return array of results instead of result<vec,err>
uri-99 688b017
Merge branch 'staging' into 1314-fix-sender-receive-batchinclusiondat…
uri-99 e513997
fix: non paying case
uri-99 91ba39a
chore: cargo fmt
uri-99 446c4a7
fix: 2 send target2 bugs
uri-99 222b7c6
chore: cargo clippy
uri-99 2a537be
chore: cargo fmt
uri-99 3030f1e
docs: update docs
avilagaston9 5c6c776
chore: comments on cut condition
uri-99 e4e58c0
Merge branch '1314-fix-sender-receive-batchinclusiondata-or-createnew…
uri-99 624602e
fix: compatibility with base branch
uri-99 51663d6
chore: cargo.lock
uri-99 176f19c
Merge branch 'staging' into 1015-task-sender
uri-99 761e1df
chore: cargo lock
uri-99 7d47a69
refactor: make target send_inf_proofs
uri-99 cee9553
Merge branch 'staging' into 1015-task-sender
uri-99 dee5570
chore: details and compatibility
uri-99 34998e3
refactor: add `accounts` to make target
uri-99 bdc09cb
chore: cargo
uri-99 7bce519
refactor: await all handles
uri-99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| [workspace] | ||
| members = [ | ||
| "aligned-batcher", | ||
| "aligned-sdk", | ||
| "aligned" | ||
| ] | ||
| members = ["aligned-batcher", "aligned-sdk", "aligned", "aligned-task-sender"] | ||
| resolver = "2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
|
|
||
| [package] | ||
| name = "task-sender" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [dependencies] | ||
| serde = { version = "1.0.201", features = ["derive"] } | ||
| serde_json = "1.0.117" | ||
| futures-util = "0.3.30" | ||
| tokio = { version = "1.40.0", features = [ | ||
| "io-std", | ||
| "time", | ||
| "macros", | ||
| "rt", | ||
| "rt-multi-thread", | ||
| "sync", | ||
| "process", | ||
| "fs", | ||
| ] } | ||
| tokio-tungstenite = { version = "0.24.0", features = [ | ||
| "rustls-tls-webpki-roots", | ||
| "native-tls", | ||
| ] } | ||
| url = "2.5.0" | ||
| log = "0.4.21" | ||
| env_logger = "0.11.3" | ||
| clap = { version = "4.5.4", features = ["derive"] } | ||
| ethers = { tag = "v2.0.15-fix-reconnections", features = [ | ||
| "ws", | ||
| "rustls", | ||
| ], git = "https://github.com/yetanotherco/ethers-rs.git" } | ||
| aligned-sdk = { path = "../aligned-sdk" } | ||
| rpassword = "7.3.1" | ||
| sha3 = { version = "0.10.8" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [toolchain] | ||
| channel = "nightly-2024-04-17" | ||
| components = ["llvm-tools", "rustc-dev"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.