Skip to content
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

Allow replacement txs with exactly price bump #13161

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

yaziciahmet
Copy link
Contributor

@yaziciahmet yaziciahmet commented Dec 5, 2024

Currently, if replacement transaction is bumped exactly by the price_bump%, transaction is rejected due to being underpriced. This behavior doesn't match with the Geth implementation, and also doesn't work with speed-up feature of well-known wallet applications such as Metamask since they increase the fee exactly 10% (default price bump rate).

Here is the exact line in Geth: https://github.com/ethereum/go-ethereum/blob/67a3b087951a3f3a8e341ae32b6ec18f3553e5cc/core/txpool/legacypool/list.go#L323

closes #13160

@yaziciahmet yaziciahmet requested a review from mattsse as a code owner December 5, 2024 15:22
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair, then the rule is easy to follow

ty

@mattsse
Copy link
Collaborator

mattsse commented Dec 5, 2024

@mattsse
Copy link
Collaborator

mattsse commented Dec 5, 2024

just needs rustfmt,

@yaziciahmet
Copy link
Contributor Author

btw @yaziciahmet

I think we're open to support this natively via a feature:

https://github.com/yaziciahmet/tonic/blob/e9d4ff521762b4cc88826b4feb5492a9db7a6454/crates/primitives/src/lib.rs#L46

hahahah I wasn't expecting my toy project to be peeped. that would actually be great.

@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Dec 5, 2024
@mattsse mattsse merged commit 4fe5c2a into paradigmxyz:main Dec 5, 2024
35 of 39 checks passed
@hai-rise hai-rise mentioned this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow replacement transactions with exactly price bump
2 participants