Implement downloading the chain storage#2876
Draft
tomaka wants to merge 6 commits intoparitytech:mainfrom
Draft
Conversation
Contributor
Author
|
Another thing to note is that at the moment we use the "no proof" version of the network protocol. |
Contributor
twiggy diff reportDifference in .wasm size before and after this pull request. |
Contributor
Author
|
Doesn't work due to the lack of child tries support. |
Contributor
Author
|
I'm going to update this PR to use the "proof version" of the request, and afterwards I would like to merge it. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cc #165
Adds a mode to the
warp_syncwhere, instead of downloading just the runtime and then the consensus-related information, we download the entire storage of the chain.To achieve this, the
StorageGetrequests have been renamed toStorageGetKeys, and a newStorageGetRangerequest has been added.Works for Westend. For Polkadot I'm getting
UnexpectedEntriesCounterrors which I can't manage to solve at the moment.This needs to be solved, and this PR needs a bit of clean up, before being ready for review/merging. However it is 90% ready.