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

core: replace instances of 'suicide' with 'selfdestruct' to improve code consistency. #27716

Merged
merged 7 commits into from
Jul 15, 2023

Conversation

jwasinger
Copy link
Contributor

also, it removes a check for nil stateObject return within StateDB.SelfDestruct: the address is that of the currently-executing contract so the corresponding stateObject is guaranteed to exist.

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, but I'd slightly lean towards keeping the nil-check

core/state/state_object.go Outdated Show resolved Hide resolved
core/state/statedb.go Show resolved Hide resolved
@jwasinger jwasinger marked this pull request as ready for review July 13, 2023 11:34
jwasinger and others added 2 commits July 13, 2023 13:39
Co-authored-by: Martin Holst Swende <martin@swende.se>
@holiman holiman added this to the 1.12.1 milestone Jul 13, 2023
cmd/evm/internal/t8ntool/execution.go Outdated Show resolved Hide resolved
core/vm/interface.go Show resolved Hide resolved
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
@lightclient
Copy link
Member

Looks like some tracer tests are still failing

@s1na
Copy link
Contributor

s1na commented Jul 14, 2023

somebody said tracer?

@holiman holiman merged commit d233b6b into ethereum:master Jul 15, 2023
@jwasinger jwasinger deleted the suicide-to-selfdestruct branch July 15, 2023 17:42
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
…ode consistency. (ethereum#27716)


---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

4 participants