-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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: ignore basefee when comparing with pool gasprice in txpool #24080
Conversation
pendingBaseFee := pool.priced.urgent.baseFee | ||
if !local && tx.EffectiveGasTipIntCmp(pool.gasPrice, pendingBaseFee) < 0 { | ||
// Drop non-local transactions under our own minimal accepted gas price or tip | ||
if !local && tx.GasTipCapIntCmp(pool.gasPrice) < 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be GasFeeCapIntCmp
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, not sure yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some more discusssion, it seems just reverting to GasTipCapIntCmp
is the best choice for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHY?I think tx.EffectiveGasTipIntCmp(pool.gasPrice, pendingBaseFee) < 0 Is better here.
…ereum#24080) This reverts commit 9489853.
…ereum#24080) This reverts commit 9489853.
fix #24079
pool.gasPrice
is config bypricelimit
.go-ethereum/core/tx_pool.go
Line 300 in cc87cbd
baseFee
will always changed by tx pool . so if you do that, users will not able to send tx below baseFee rather thanpricelimit
. highly recommended revert this pr #23855.go-ethereum/core/tx_list.go
Line 424 in cc87cbd
#23855
#23837