Replies: 4 comments 4 replies
-
Agree to bring back the Alternatively, we could also be merging |
Beta Was this translation helpful? Give feedback.
-
Any updates on this, @IaroslavMazur? I recall you mentioned on the all-hands call that you've been through some ugly rebases with REVM. Would it have helped if the SELF-DESTRUCT logic had remained in SabVM? |
Beta Was this translation helpful? Give feedback.
-
I must admit I haven't considered the audits before. Thank you for the new perspective! Although, shouldn't this only matter if
|
Beta Was this translation helpful? Give feedback.
-
As argued here, there's another important reason for wanting to keep the SELF-DESTRUCT logic. Minimizing differences between SabVM and REVM. |
Beta Was this translation helpful? Give feedback.
-
We have a problem regarding SELF-DESTRUCT.
We want to disable SELFDESTRUCT because it significantly complicates the MNTs implementation, i.e., what happens when an account holding a lot of MNTs is destructed?
Since SELFDESTRUCT is going to be partially disabled in CANCUN, it's fine to completely disable the opcode in the SabVM. However, it does not follow that we should remove all code references to SELFDESTRUCT because we still need to keep rebasing from REVM. We need to make a choice between:
@IaroslavMazur went with the first approach in #14. However, as discussed in person today, I am of a different view, namely, that we should go with the second approach.
To keep things simple for now, I am happy to leave the PR implementation as is. But I do want us to monitor the technical debt cost introduced by this complete removal of SELFDESTRUCT.
That is, if in a future rebase from REVM, we notice that there are lots of git conflicts, then we switch over to the second approach. Alternatively, we keep using the first.
Beta Was this translation helpful? Give feedback.
All reactions