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
C-complexComplex changes across multiple modules. Possibly will require additional research.P-lowthis is mostly nice to have.S-networkissues related to the dot/network package.T-featthis issue/pr is a new feature or functionality.
The Warp Sync Strategy should issue the warp sync proof request until it receives the done flag from the peer indicating that the warp sync is completed then it should issue a state request to bring the most up to data state and import it.
Each warp sync proof contains a set of warp fragments, each fragment contains a block that a authority set happened and the justification proving the finality of the block, these blocks should be validated and imported in the state, the response format is defined in the link in additional informations
The Warp Sync process is full done once the most up to date state is requested and imported, once finished the sync service should change from warp sync to full sync method and keeping syncing!
EclesioMeloJunior
added
S-network
issues related to the dot/network package.
P-low
this is mostly nice to have.
C-complex
Complex changes across multiple modules. Possibly will require additional research.
T-feat
this issue/pr is a new feature or functionality.
labels
Aug 8, 2024
C-complexComplex changes across multiple modules. Possibly will require additional research.P-lowthis is mostly nice to have.S-networkissues related to the dot/network package.T-featthis issue/pr is a new feature or functionality.
Description
Strategy
interfaceThe Warp Proof Request is issued to a valid peer and the message format is just the hash of the block, since we don't have it documented in the spec, an example can be found here: https://github.com/paritytech/polkadot-sdk/blob/eb0a9e593fb6a0f2bbfdb75602a51f4923995529/substrate/client/network/sync/src/strategy/warp.rs#L516
The Warp Sync Strategy should issue the
warp sync proof
request until it receives thedone
flag from the peer indicating that the warp sync is completed then it should issue astate request
to bring the most up to data state and import it.Each warp sync proof contains a set of
warp fragments
, each fragment contains a block that a authority set happened and the justification proving the finality of the block, these blocks should be validated and imported in the state, the response format is defined in the link in additional informationsThe Warp Sync process is full done once the most up to date state is requested and imported, once finished the sync service should change from warp sync to full sync method and keeping syncing!
Additional informations
https://spec.polkadot.network/#sect-sync-warp
WARP Sync slides (2).pdf
The text was updated successfully, but these errors were encountered: