-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve nonce management logic for private mempool handling (#6277)
* Add support for default private mempool timeout of 2 minutes * fix: rename chainsPrivateMempoolTimout * Use existing timestamp to update tx timestamp for new pending txns or updating pending txns * Update nonce management logic * Wrap latest and pending tx count calls in Promise.all * Add support for batched provider * Use batched provider in nonce manager logic * Update getNextNonce forloop exit * Fix: handle when localNonce not set yet * Remove nonce logic for flashbots from pending txn watcher * Remove flashbots toggle from swap review panel * Remove flashbots from swap-provider * Remove flashbots logic from swap gas panel * Remove flashbots from swap settings and meteorology * Remove flashbots enabled from redux and global settings * Remove flashbots from speedup and cancel sheet and redux gas * Remove flashbots from explain sheet * Remove flashbots from raps * Remove getFlashbotsProvider * Remove flashbots from remote config defaults * Remove flashbots from txns parser * Remove flashbots row from swap settings panel * Remove flashbots from animated swap styles * Remove supported flashbots chain ids list * Remove flashbots in analytics and experimental config * Remove flashbots from GasSpeedButton and FeesPanel * Remove flashbots min tip constant * Remove en_US flashbots copy * Adding new txn to behave similar to updating txns in order to handle new txns that are using a gapped nonce * Fix addPendingTxn to ensure pending txns are ordered by nonce * Simplify updateTransaction which matches addNewTransaction * Support pendingTransactions function for returning txns in recent first order * Cleanup sort function * Fix: setNonce only when nonce is greater than currentNonce now that addNewtx and updateTxn have been consolidated and a gapped nonce can be picked up * Set up HARDHAT_RPC_URL constant * Fix: array sort sorts in place * Remove flashbots from latest changes for navigateToSwaps * Add a comment for getNextNonce logic * Remove unnecessary updating of nonces from pending txn watcher as it clobbers over data during for loop * Fix: off by one error when comparing local nonce with pending txn count * Remove flashbots reference
- Loading branch information
Showing
44 changed files
with
167 additions
and
566 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
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
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
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.