-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: Hybrid StateDB for precompile support #47
Conversation
drklee3
commented
Apr 15, 2024
•
edited
Loading
edited
- Hybrid StateDB design (state breaking)
- Fix for SetState deletion
745372a
to
e94221d
Compare
removed from golangci-lint in v1.49.0
This reverts commit 1446f25.
without the goal of state compatibility, removes extra complexity and unneeded logic
Previous to this change, keeper SetState() only deletes when the len(value) == 0. However, since value in the StateDB is a common.Hash{}, this will always be the HashLength. Deleting the value when the empty hash is set will also ensure specific no-op changes will not be committed, e.g. Creating a state, then deleting it in the same tx will result in no state added.
24e4968
to
5030d2e
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs. |