-
Notifications
You must be signed in to change notification settings - Fork 273
Problem: tx is not replaced by priority #1563
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -375,6 +375,10 @@ func New( | |
| TxPriority: mempool.NewDefaultTxPriority(), | ||
| SignerExtractor: evmapp.NewEthSignerExtractionAdapter(mempool.NewDefaultSignerExtractionAdapter()), | ||
| MaxTx: maxTxs, | ||
| TxReplacement: func(op, np int64, oTx, nTx sdk.Tx) bool { | ||
| // tx is only replaced if new priority is higher than old priority | ||
| return np > op | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need align how ethereum replace tx There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same nonce tx will fail in checkTx in the first place, might not be trivial to support this feature. |
||
| }, | ||
| }) | ||
| handler := baseapp.NewDefaultProposalHandler(mempool, app) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.