You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the tracer reports gasUsed, it reports it based on the gasUsed that was determined based on remaining gas in CaptureTxEnd. For deposits we don't have refunds, hence 0 remaining gas. But that doesn't mean all gas was used. Hence the incorrect tracer value.
In the implementation the gas-price is 0, and so a 0 refund is given to deposits, without skipping the refund code-path.
I think we can reduce the diff, and just report the actual remainingGas to the tracer.
Would like some feedback here from @trianglesphere and/or @axelKingsley.
System information
Geth version:
Geth/v1.101311.0-stable-e9a306ba/linux-amd64/go1.21.9
CL client & version:
op-node v1.7.3
OS & Version:Linux
Issue
Given the following call:
op-geth is returning:
However, the
gasUsed
is incorrect, if you look at the receipt:This is how much gas is used:
"cumulativeGasUsed": "0xab4b",
NOT0xf4240
Both
op-erigon
and the explorer say that the output of the debug_traceTransaction should be"gasUsed": "0xab4b",
The text was updated successfully, but these errors were encountered: