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

fix: invoke enter,exit only for non root calls #5686

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 4, 2023

closes #5684

geth only invokes enter+exit if there's a new scope that isn't the root call.

There's one caveat: self-destruct is treated as a new scope

https://github.com/ethereum/go-ethereum/blob/0004c6b229b787281760b14fb9460ffd9c2496f1/eth/tracers/js/goja.go#L302-L304

["setup","PUSH1","PUSH1","MSTORE","PUSH1","DUP1","DUP2","DUP3","DUP4","DUP5","GAS","DUP7","CALL","enter","exit","POP","POP","PUSH1","DUP1","PUSH1","PUSH1","CODECOPY","PUSH1","RETURN"]

@mattsse mattsse added the A-rpc Related to the RPC implementation label Dec 4, 2023
@mattsse mattsse added this pull request to the merge queue Dec 4, 2023
Merged via the queue into main with commit 55f4c30 Dec 4, 2023
27 checks passed
@mattsse mattsse deleted the matt/fix-enter-exit-calls branch December 4, 2023 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

javascript debug_traceTransaction not fully compatible with geth
2 participants