-
Notifications
You must be signed in to change notification settings - Fork 1.7k
calculate gas_used of the transaction trace correctly, #9194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/// Gas paid up front for transaction execution | ||
/// Gas paid up front for entire transaction execution. | ||
pub entire_gas: U256, | ||
/// Gas paid up front for action execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gas paid up front for action execution (entire gas minus action opcode and data cost).
?
I don't quite understand the meaning of
Given that this |
Another method to fix #9178 and #6964 is to directly insert the transaction gas to tracing mod. I think that may be the better way, because the current gas used is actually correct if we consider a transaction is a wrapper on a call/create executive. Also a note, this PR slightly conflicts with #9360. |
What's the status of this? |
Please reopen once you continue working on this. |
description of the issue: #9178 (comment)