-
Notifications
You must be signed in to change notification settings - Fork 209
refactor(core): Refactor Patricia Merkle Trie (avoid compulsive hashing) #2687
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a3da5fe
Refactor Patricia Merkle Trie to avoid compulsive hashing.
azteca1998 acd6d08
Fix `NodeRef` usage outside the actual nodes.
azteca1998 0d4db58
Remove `crates/common/trie/state.rs`.
azteca1998 b2f58a4
Fix `crates/storage/store.rs`.
azteca1998 b27a497
Partial progress on `verify_ranges.rs`.
azteca1998 cf32175
Refactor node insertion to support external references (1).
azteca1998 cb97731
Refactor node insertion to support external references (2).
azteca1998 dfc1578
Fix `crates/storage/store.rs`.
azteca1998 ada6a9d
Refactor node insertion to support external references (3).
azteca1998 cbaefc1
Fix hash-inlined node retrievals and trie commits.
azteca1998 d9706e5
Fix bugs.
azteca1998 56cf958
Fix last failing test.
azteca1998 d6dd54e
Fix all tests.
azteca1998 5b85a74
Remove unreachable code.
azteca1998 5703fc2
Fix concat issue.
azteca1998 3a0b8b2
Add `Trie::from_nodes()` constructor.
azteca1998 83e578b
Fix old `TrieState` bugs.
azteca1998 a0e5d66
Fix last `Trie::from_nodes` usage.
azteca1998 2e7ed42
Merge branch 'main' into refactor-trie-avoid-compulsive-hashing
azteca1998 a0160fb
Make node references use `Arc` and cache computed hashes.
azteca1998 0937219
Fix warning.
azteca1998 e56c2c0
Fix hive tests.
azteca1998 2454620
Try to fix last CI errors.
azteca1998 7a44d8a
Try to fix last CI errors.
azteca1998 1660e07
Try to fix last CI errors.
azteca1998 e53745f
Partially fix final failed test.
azteca1998 8550594
Fix bug in `from_nodes`.
azteca1998 829940b
Merge branch 'main' into refactor-trie-avoid-compulsive-hashing
azteca1998 cf0622b
Fix warnings.
azteca1998 ee5bf83
Fix final test.
azteca1998 58245a0
Update changelog.
azteca1998 765632b
Review changes.
azteca1998 e9abebd
More review changes.
azteca1998 b27a798
Revert `get_child_from_nodes`.
azteca1998 bfe99b2
Merge branch 'main' into refactor-trie-avoid-compulsive-hashing
azteca1998 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.