Geth patch targets gas estimates that hide failed calls
A go-ethereum pull request would reject gas estimates that cause more internal call failures than a higher-gas run.
In brief
- A developer proposed a Geth fix for cases where a wallet suggests enough gas for a transaction to appear successful but not enough to complete an internal call.
- The developer warned that EIP-8037 could make this more common because gas returned after a failed call can pay for fallback logic.

A developer has proposed a patch to go-ethereum (Geth) that would stop the client from returning gas limit estimates that are too low because failed internal calls between contracts were ignored. The proposal sits in a pull request on the go-ethereum GitHub repository.
What the patch tries to fix
The pull request describes a case where gas limits are set too low because internal contract-to-contract calls that failed were not counted against the estimate. Wallets relying on such an estimate could then suggest a gas limit that lets the outer transaction complete without finishing the work inside it.
In practice, the transaction would appear to succeed while some of the logic it was meant to trigger quietly failed, since the failure happened in an inner call rather than at the top level.
How the check would work
Under the proposal, an estimate would be rejected if it produces more internal failures than a reference execution run with higher gas. In other words, the estimator would compare its candidate against a more generous run and refuse any limit that makes inner calls fail where the larger budget would not.
Why EIP-8037 raises the stakes
The developer warned in the pull request that EIP-8037 may make this problem more frequent, because returned gas can pay for fallback logic. That means a contract could have just enough gas left after a failed call to run its fallback path, which makes a too-low estimate look like a working one.
This fits a wider concern about the gas repricing work. OnchainBeat has covered ChainSecurity's warning that EIP-8037 and EIP-8038 change gas accounting in ways that can break relayer and retry logic in contracts built on gasleft().
Related projects: Ethereum
How we verified Checked against the document (go-ethereum pull request 36084 on GitHub).
Sources
Checked by OnchainBeat · 1 link, 1 primary document- Documentgo-ethereum pull request 36084 on GitHubgithub.com





