This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update equality checks for replacement transactions to prevent e…
…rroneous underpriced errors (#1650) * add miner.priceBump option * add error for locked transaction * fix replacement tx logic use maxPriorityFeePerGas, maxFeePerGas, and gasPrice to check if a transaction is an eligible replacement. fix bug to include replacement transaction EQUAL to price bump * modify test to include extra fail cases * update comment * add back comment * Fix/improve error message Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com> * allow string for priceBump option Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
- Loading branch information
1 parent
3a2646f
commit b892c25
Showing
4 changed files
with
125 additions
and
19 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