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

eth/tracers: Add support for REVERT/SELFDESTRUCT in evmdis_tracer #24016

Merged
merged 3 commits into from Dec 1, 2021

Conversation

axic
Copy link
Member

@axic axic commented Nov 29, 2021

No description provided.

@s1na
Copy link
Contributor

s1na commented Nov 29, 2021

The modified JS code needs to be also embedded into go. I tried to do this but didn't have write permissions to the PR. You can do it by:

go install github.com/kevinburke/go-bindata/go-bindata@latest
go generate ./eth/tracers/js/internal/tracers

@axic
Copy link
Member Author

axic commented Nov 29, 2021

Thanks, regenerated! @s1na added you to the repo, it may be handy in the future too.

@@ -71,7 +71,7 @@
opinfo["ops"] = [];
this.stack.push(opinfo);
break;
case "RETURN":
case "RETURN": case "REVERT":
Copy link
Contributor

Choose a reason for hiding this comment

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

This tracer is also using SUICIDE, as opposed to SELFDESTRUCT -- I think this tracer is kind of bitrotted. Also, it was written to be used along with disasm (https://github.com/Arachnid/evmdis ) which hasn't been updated since 2018.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I was going to submit a PR renaming SUICIDE in multiple places, but decided to put a stop to creating new PRs for now 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed this instance of suicide here.

@axic axic changed the title eth/tracers: Add support for REVERT in evmdis_tracer eth/tracers: Add support for REVERT/SELFDESTRUCT in evmdis_tracer Nov 29, 2021
@chfast chfast self-requested a review November 30, 2021 13:12
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman holiman merged commit 721c572 into ethereum:master Dec 1, 2021
@holiman holiman deleted the evmdis-tracer branch December 1, 2021 09:34
@holiman holiman added this to the 1.10.14 milestone Dec 1, 2021
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
…thereum#24016)

* eth/tracers: Add support for REVERT in evmdis_tracer

* evm/tracers: Fix evmdis_tracer to use SELFDESTRUCT instead of SUICIDE

* eth/tracers: Regenerate tracer library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants