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

EIP-4758 Implementation #24389

Closed
wants to merge 1 commit into from

Conversation

jwasinger
Copy link
Contributor

@jwasinger jwasinger commented Feb 15, 2022

This is an implementation of the "nuclear" option for removing SELFDESTRUCT in a future hardfork:

At block SendallForkBlock, the behavior of SELFDESTRUCT changes to only send the balance of the originating contract to the target recipient and no longer deletes the originating contract.

@jwasinger
Copy link
Contributor Author

In this draft PR, fork ordering rules require SendallForkBlock to come before MergeForkBlock to make these changes testable without requiring the merge. If this change goes live, it will happen after the merge.

@jwasinger jwasinger changed the title Neuter SELFDESTRUCT EIP-4758 Implementation Apr 4, 2022
@holiman
Copy link
Contributor

holiman commented Sep 26, 2022

Closing in favour of #25871

@holiman holiman closed this Sep 26, 2022
@holiman
Copy link
Contributor

holiman commented Oct 13, 2022

Closing in favour of #25871

... not :)

@holiman holiman reopened this Oct 13, 2022
@jwasinger jwasinger force-pushed the selfdestruct-to-sendall branch from 259df37 to 1958991 Compare October 17, 2022 20:30
@jwasinger jwasinger force-pushed the selfdestruct-to-sendall branch from 1958991 to ae00914 Compare October 17, 2022 20:40
instructionSet := newMergeInstructionSet()
instructionSet[SENDALL] = &operation{
execute: opSendall,
dynamicGas: gasSelfdestructEIP3529,
Copy link
Member

Choose a reason for hiding this comment

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

I think you forgot to charge constant gas too

Suggested change
dynamicGas: gasSelfdestructEIP3529,
constantGas: params.SelfdestructGasEIP150,
dynamicGas: gasSelfdestructEIP3529,

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