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

core: fixed stale comment in txlist #23825

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

MariusVanDerWijden
Copy link
Member

@MariusVanDerWijden MariusVanDerWijden commented Oct 28, 2021

This PR fixes a comment in the txlist.

Why do we need to bump both FeeCap and Tip?

We aim to have all transactions in the txpool executable, otherwise an attacker could flood the txpool with invalid transactions or keep their transactions in the txpool indefinitely, taking up space for real users.
If we allowed users to only bump the tip, they could spam the transaction pool with transactions that have a low feecap and bump their tip up every now and then to keep them in the txpools.
If we allowed users to only bumb the feecap, we could reach a similar situation. Right now the miners only accept transactions with tip > 1Gwei by default. This means if someone added a transaction with a tip < 1 gwei, and keeps bumping the feecap, the transaction would remain in the txpool indefinitely.

An attacker introducing a transaction with 1/1 Gwei could bump it twice as much if we allowed for both feecap and tip to be bumped individually, compared to now

closes #23311

@holiman holiman merged commit bff3303 into ethereum:master Oct 28, 2021
@holiman holiman added this to the 1.10.12 milestone Oct 28, 2021
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Oct 28, 2021
@MariusVanDerWijden MariusVanDerWijden deleted the txlist-comment branch November 30, 2021 15:28
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mempool requires dynamic fee txs to increase both tip and fee cap by price bump threshold
2 participants