-
Notifications
You must be signed in to change notification settings - Fork 286
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
trace_block gas field not equal to debug_traceBlockByNumber output #544
Comments
Debug and trace namespaces are working little bit different. Root call for debug_trace... has gas value of gas limit - initial gas ( 282,248 - (21000 + 736) ) and that is 0x3f9a0 and it has gasUsed value 0x2a46c (173164) which is gas used by this root call without inner calls. Root call for trace_... has gas value in action element equals to gas limit to see how much gas actually was used for transaction and gasUsed in result element has a value from transaction receipt to be able to see actual gas consumed by this transaction (all calls in this tx) Gas and gas used for inner calls should be the same for debug and trace. |
@HonzaDajc Hi, I would like to have further insights on another response inconsistency we observed, it would be good to have the understanding if it's related to inner calls. In additional to the above issue. We also observed the difference between
Please let me know if I shall open a new issue to address this? |
@ella-quicknode Hi, yes the thing you reported is a bug, already fixed in sonic release, so once archive nodes will use sonic, then it will give same result. It is because of wrong address for inner delegate call |
Describe the bug
debug_traceBlockByNumber
returns0x3f9a0
buttrace_block
returns0x31082
Version
go-opera/v1.1.3-txtracing-rc.5
To Reproduce
Responds with
0x3f9a0
Responds with
0x31082
Expected behavior
Same gas value
The text was updated successfully, but these errors were encountered: