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

tracer: fix incorrect gasUsed in deposit tx #181

Closed
wants to merge 1 commit into from

Conversation

easyfold
Copy link

Description

Fullnode v0.5.0 debug_traceBlock reports incorrect gasUsed in deposit tx, it's due to a bug introduced from upstream code pr.

if st.msg.IsDepositTx && !rules.IsOptimismRegolith && err == nil {
if st.msg.IsSystemTx {
tracer.CaptureTxEnd(st.msg.GasLimit)
}
tracer.CaptureTxEnd(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else branch is needed here.

@redhdx
Copy link
Contributor

redhdx commented Oct 30, 2024

Can you consider submitting a similar PR to the OP official?

@owen-reorg
Copy link
Collaborator

Regolith forks on opbnb networks are enabled from the start, so this fix is not necessary for opbnb. I suggest you submit the PR to the optimism repository. Thank you for your contribution.

@owen-reorg owen-reorg closed this Oct 30, 2024
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.

3 participants