-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Merkle proof verification to warp syncing module (#3054)
Before this PR, the warp syncing code asks "hey I'd like to know the runtime", and the upper layers download a Merkle proof, verify it, and give the storage values to the warp syncing code. This PR modifies this. The warp syncing code now asks for a Merkle proof of arbitrary keys, and the upper layers download that proof and give to the warp syncing code. It is the warp syncing code that verifies said proof. The objective of this PR is simplification of the API surface of the syncing code. It will also make it easier to implement #1769, as it is now clear who is responsible for first downloading only the hash. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7750c22
commit 4bf957a
Showing
4 changed files
with
138 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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 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 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.