Skip to content
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 version 1 #1433

Merged
merged 41 commits into from
Jan 13, 2023
Merged

Trie version 1 #1433

merged 41 commits into from
Jan 13, 2023

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Dec 2, 2022

Referenced issues

Description of the Change

  • Trie version 1 (hashed values)
  • Simplify trie nodes
  • Fix hashed value encoding
  • Get/set with hashed value
  • Add version parameter to usages

Benefits

  • Can sync rococo after 2848657

Possible Drawbacks

  • Testing (with rococo blocks) didn't cover all cases (e.g. child storage, block production, trie restructuring).
  • Didn't add "read from db" dependency, reused DummyNode - struct DummyValue.

@turuslan turuslan requested review from kamilsa and Harrm December 2, 2022 12:39
Copy link
Contributor

@kamilsa kamilsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add task to remove StateVersion::TODO_NotSpecified when tests will cover it

@turuslan turuslan requested a review from kamilsa December 22, 2022 14:25
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
@turuslan turuslan merged commit 85e4e28 into master Jan 13, 2023
@turuslan turuslan deleted the rococo/2848657 branch January 13, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants