-
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
all: port boring changes from pbss #27176
Conversation
2948d75
to
2bc4470
Compare
Btw, @holiman @karalabe @fjl I do need the insights from you guys about the package name. triedb
├── hashdb
│
└── snap Right now I create a wrapper of triedb and place the original database in |
How about |
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.
Big change, can't give any guarantees but it looks good to me
We can discuss the package name on triage,
EDIT; |
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, tried to follow as much of the logic as I could, but some refactors touch too many files for me to properly review it.
Have you run a sync with it?
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.
Kind of SGTM. Would be nice to merge and put in on a benchmarker for good measure
* all: port boring changes from pbss * core, trie: address comments from martin * trie: minor fixes * core/rawdb: update comment * core, eth, tests, trie: address comments * tests, trie: add extra check when update trie database * trie/triedb/hashdb: degrade the error to warning
* all: port boring changes from pbss * core, trie: address comments from martin * trie: minor fixes * core/rawdb: update comment * core, eth, tests, trie: address comments * tests, trie: add extra check when update trie database * trie/triedb/hashdb: degrade the error to warning
This reverts commit 7e555fb.
This reverts commit 7e555fb.
This PR introduces a wrapper for trie database, so that we can have hash-based and path-based storage scheme respectively implemented in their own package and called by this wrapper.
Additionally, it modifies the unit tests for supporting path-based scheme as well later on.