-
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
Can't send any amount of eth, "gas required exceeds allowance or always failing transaction" #21007
Comments
That seems odd because that error message originates from |
Seems like this error appears only on accounts where eth amount is under the specific value |
Yes, hence 'always failing'. Regardless of the amount of gas, the tx fails (balance too low).This is working as expected, no?
|
Using Ethereum logic I can transfer ~0.0046 eth from account with 0.005 eth and rest will be used as gas. |
Hmm, @holiman I think this may be a legit bug. If gas estimation uses non-zero gas price (sendTransaction should do that), then binary search can fail if the attempted gas limit is larger than what the account can cover. |
I think we'd need to add an extra clause to estimateGas, so the max cap is also capped by available balance? |
FYI, I still have this error after #21043
|
@rjl493456442 Here is the code that I use to send token from a smart contract (some info are obfuscated) but you can reproduce them with your own smart contract & account address.
|
After updating geth to latest version, can't send any amount of eth
System information
Geth version:
1.9.13-stable
OS & Version: CentOS 7
Expected behaviour
Could send 0.001-0.0046 eth to another address from account with 0.005 eth
Actual behaviour
Always getting error like
gas required exceeds allowance (%amount%) or always failing transaction
The text was updated successfully, but these errors were encountered: