-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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/vm, core/state/snapshot: remove unused code #23956
Conversation
@@ -30,95 +30,50 @@ import ( | |||
func TestWipe(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for removing the storage slot entries from this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope of things being tested is different. Previously, the test tested more thoroughly the snapshot wiping. Since we removed the wiper, the only thing being tested is the wipeKeyRange. For wipeKeyRange, I felt that the only parts of interest were longer keys and shorter keys.
I don't think the test becomes any better just because we test on one set of 33-byte keys and one set of 65-byte keys.
I mean, we could even remove the whole notion of accounts/storage from this test, and just use blob data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
* core/state/snapshot: remove wiper functionality * core/vm: remove unused 'unofficial' opcodes
* core/state/snapshot: remove wiper functionality * core/vm: remove unused 'unofficial' opcodes
* core/state/snapshot: remove wiper functionality * core/vm: remove unused 'unofficial' opcodes
This PR removes the 'wiper', which was used in an early version of snap sync to clean out snap data. It was deprecated since we figured out how to use the mostly-correct-but-partially-corrupt snapshot data without wiping it fully.
This PR also removes some "unofficial opcodes used for parsing", which, actually, aren't used for parsing.