Skip to content
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

debug_trace*: root gas should use tx.gasLimit #8858

Merged
merged 2 commits into from
Dec 1, 2023
Merged

debug_trace*: root gas should use tx.gasLimit #8858

merged 2 commits into from
Dec 1, 2023

Conversation

yperbasis
Copy link
Member

yperbasis and others added 2 commits November 29, 2023 13:27
This includes a semantic change to the `callTracer` as well as `flatCallTracer`.
The value of field `gas` in the **first** call frame will change as follows:

- It previously contained gas available after initial deductions (i.e. tx costs)
- It will now contain the full tx gasLimit value

Signed-off-by: jsvisa <delweng@gmail.com>
@yperbasis yperbasis linked an issue Nov 29, 2023 that may be closed by this pull request
@yperbasis yperbasis marked this pull request as ready for review November 29, 2023 12:36
@yperbasis yperbasis changed the title eth/tracers: traces[0].gas should use tx.gasLimit debug_trace*: traces[0].gas should use tx.gasLimit Nov 29, 2023
@yperbasis yperbasis changed the title debug_trace*: traces[0].gas should use tx.gasLimit debug_trace*: root gas should use tx.gasLimit Nov 29, 2023
@yperbasis yperbasis merged commit 1ae1301 into devel Dec 1, 2023
10 of 11 checks passed
@yperbasis yperbasis deleted the issue7831 branch December 1, 2023 09:04
blxdyx pushed a commit to blxdyx/bsc-erigon that referenced this pull request Jan 3, 2024
Cherry pick ethereum/go-ethereum#27029

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
blxdyx pushed a commit to blxdyx/bsc-erigon that referenced this pull request Jan 4, 2024
Cherry pick ethereum/go-ethereum#27029

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gas Value is wrong in debug_trace* method for blocks in archive
3 participants