-
Notifications
You must be signed in to change notification settings - Fork 1
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
Node not rejecting txs with gas price less than 25 Gwei #291
Comments
I checked the Validation code op-geth/core/txpool/validation.go Line 155 in f102315
|
Fixes #291 Before, the transaction pool accepted transactions that have a gas-price below the configured base-fee-floor, which would never be executed. Now, the transaction pool rejects those transactions immediately - giving the submitting user an immediate response and better UX.
Hey @kamikazechaser - thank you for your contribution, this is much appreciated. You are right, since the transaction would never be able to be executed, rejecting it from txpool insertion is the right thing to do and increases the UX. The empty txpool is another good point - I would also expect it to be reflected in the local txpool list, but let me investigate this. |
Fixes #291 Before, the transaction pool accepted transactions that have a gas-price below the configured base-fee-floor, which would never be executed. Now, the transaction pool rejects those transactions immediately - giving the submitting user an immediate response and better UX.
Fixes #291 Before, the transaction pool accepted transactions that have a gas-price below the configured base-fee-floor, which would never be executed. Now, the transaction pool rejects those transactions immediately - giving the submitting user an immediate response and better UX.
Details
us-west1-docker.pkg.dev/devopsre/celo-blockchain-public/op-geth:celo8
Description
It is possible to submit type 2 transactions with a
gasFeeCap
of < 25 Gwei. This transaction will never be mined. I would expect it to be rejected at the RPC level or dropped in the tx pool. Neither of which happens. Inspecting the local txpool shows it is empty, but resubmitting the raw tx on the local or any other node results in "already known".Steps to reproduce
I used cast:
On op-geth local node:
I'd expect it to show up here because of the "already known". This could be another issue.
Bumping the gasFeeCap fixes this, and resubmitting results in it being mined:
Expected behaviour
The issue I have is that there is no way to know the status of the tx submitted with the low gas price. Ideally such a transaction is rejected immediately during submission because Celo is aware of the fee floor. On the current Celo mainnet, attempting to send a tx with a low gas price results in an immidiate error: gasprice is less than gas price minimum floor
The text was updated successfully, but these errors were encountered: