You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wasm node database should contain the finalized block runtime code and heap pages.
Additionally, we should start by querying the hash of the runtime code from the network, instead of the value, and compare it against the hash stored in the database.
This would save the user from downloading the runtime if it hasn't changed since last time.
The text was updated successfully, but these errors were encountered:
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>
The wasm node database should contain the finalized block runtime code and heap pages.
Additionally, we should start by querying the hash of the runtime code from the network, instead of the value, and compare it against the hash stored in the database.
This would save the user from downloading the runtime if it hasn't changed since last time.
The text was updated successfully, but these errors were encountered: