-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
eth_estimateGas command with gasPrice param always returns "gas required exceeds allowance (0)" #21311
Comments
is your node fully synced? |
I have:
|
Are you sure the fund |
Just stumbled on this thing, it's related to large account balances.
using a much smaller number 'fixes' the issue. The last known good version was v1.9.9 if that helps. |
Seems fixed, thanks. |
This does seem to still be broken in 1.9.23, or at least doesn't work as it always has before. For example if you want to send the whole ETH balance in an address, specifying the gasPrice has always worked fine even though the value + gas used would be more than the balance, since you were just trying to figure out how much gas to deduct from the send. Now it returns "gas required exceeds allowance (0)". Removing gasPrice does fix it, but you'd hate to have to rewrite all the software out there that relies on the existing behaviour. |
System information
Geth/v1.9.15-stable-0f77f34b/linux-amd64/go1.14.4
Expected behaviour
eth_estimateGas
on an ERC-20transfer
call should accepts the parametergasPrice
as the actual call doesActual behaviour
Every time
eth_estimateGas
is called withgasPrice
,{"code":-32000,"message":"gas required exceeds allowance (0)"}
is answeredSteps to reproduce the behaviour
geth
:gasPrice
:gasPrice
:parity
:gasPrice
:The text was updated successfully, but these errors were encountered: