-
Notifications
You must be signed in to change notification settings - Fork 20.7k
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
trie: add node type common package #27160
Conversation
In trie/types package, a few node wrappers are defined, which will be used in both trie package, trie/snap package, etc. Therefore, a standalone common package is created to put these stuffs.
Hmm, this seems a bit leaky to all of a sudden have trie depend on core/types. The core/types are very high level stuff vs the trie is a low level data structure. If you want to separate the nodes into their own package, perhaps have them in trie/types? Or can't trie/snap depend on trie? |
The new package is not core/types, it's trie/types. The name isn't perfect though,
|
@karalabe Yes, I define stuffs in
trie/snap will be imported by trie package, because trie.DatabaseWrapper is in trie package. And these types in @fjl I prefer |
Very nice! Let's go with |
What about |
When the package name is |
Maybe If not, we can use |
Updated. |
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
* trie: add node type common package In trie/types package, a few node wrappers are defined, which will be used in both trie package, trie/snap package, etc. Therefore, a standalone common package is created to put these stuffs. * trie: rename trie/types to trie/trienode
* trie: add node type common package In trie/types package, a few node wrappers are defined, which will be used in both trie package, trie/snap package, etc. Therefore, a standalone common package is created to put these stuffs. * trie: rename trie/types to trie/trienode
This reverts commit 6e18ead.
This reverts commit 6e18ead.
In trie/types package, a few node wrappers are defined, which will be used
in both trie package, trie/snap package, etc. Therefore, a standalone common
package is created to place these stuffs.