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
dimartiro opened this issue
Oct 9, 2024
· 1 comment
· May be fixed by #4425
Assignees
Labels
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.
When the warp sync finished getting the fragments and its completed, we need to request and import the latest state.
This is a task that could take time and needs its own logic to be handle correctly.
For this reason we are not going to implement the state sync as part of the warp sync, instead, we are going to implement it as an independent strategy that might be run right after the warp sync strategy finished.
OnBlockAnnounceHandshake: Will update the best block hash / number for that peer
OnBlockAnnounce: same than OnBlockAnnounceHandshake
NextActions : Will return a state request
Process: Will process the response and import the state
We can read more about how the state sync is started after warp sync finishes here
An idea of how to implement the state sync strategy based on parity's implementation is here
Open questions:
How can we update the babe randomenss and validate babe to import new blocks after executing the state sync?
The text was updated successfully, but these errors were encountered:
dimartiro
added
C-complex
Complex changes across multiple modules. Possibly will require additional research.
S-network
issues related to the dot/network package.
P-low
this is mostly nice to have.
T-feat
this issue/pr is a new feature or functionality.
labels
Oct 9, 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.
When the warp sync finished getting the fragments and its completed, we need to request and import the latest state.
This is a task that could take time and needs its own logic to be handle correctly.
For this reason we are not going to implement the state sync as part of the warp sync, instead, we are going to implement it as an independent strategy that might be run right after the warp sync strategy finished.
OnBlockAnnounceHandshake
: Will update the best block hash / number for that peerOnBlockAnnounce
: same than OnBlockAnnounceHandshakeNextActions
: Will return a state requestProcess
: Will process the response and import the stateWe can read more about how the state sync is started after warp sync finishes here
An idea of how to implement the state sync strategy based on parity's implementation is here
Open questions:
The text was updated successfully, but these errors were encountered: