-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport - Fix Transactions being cached before successful publish (#…
…4277) (#4313) ## Motivation Closes #4043 ## Changes This change validates a nodes own transactions before publishing them with libp2p. This avoids them being cached and therefore multiple submissions of the same (invalid) transaction will continue to fail instead of returning "in mempool" ## Test Plan - Updated existing tests - Added tests that ensure a nodes own transactions are validated first before publishing them via libp2p (and relying on the validation there) ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed ## DevOps Notes <!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases --> - [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources) - [x] This PR does not affect public APIs - [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.) - [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
- Loading branch information
Showing
11 changed files
with
303 additions
and
133 deletions.
There are no files selected for viewing
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.