forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tx-sender): Limit concurrent tx submissions (matter-labs#1473)
## What ❔ Limits tx submissions in a way that at most one tx per (address, nonce) can be inserted into DB at any given moment. ## Why ❔ Database poorly handles concurrent tx insertions ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `zk spellcheck`. - [ ] Linkcheck has been run via `zk linkcheck`.
- Loading branch information
1 parent
e5c8127
commit 4bdf3ca
Showing
20 changed files
with
364 additions
and
295 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...lib/dal/.sqlx/query-6213f642c89d2c0a470c93b94714d21d399f860a7b986738d193871fe5cf913d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...lib/dal/.sqlx/query-68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7.json
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...lib/dal/.sqlx/query-6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130.json
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...lib/dal/.sqlx/query-cf8cff1e6d277088519ef7dfbdb1885d320c146cd8fad77c107ef12fa38e6c98.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.