[Sidechain] Integration of the peer sync mechanism#627
Conversation
murerfel
left a comment
There was a problem hiding this comment.
This is a far larger PR than originally intended. The integration of the whole sidechain synchronization required quite a few more changes than anticipated. So I added a couple of comments to hopefully help our reviewers 😄
murerfel
left a comment
There was a problem hiding this comment.
More explanations on the changes I've made.
|
Currently working on the activity diagrams for the block production loop and sidechain block import loop. Will add them to the description here. |
haerdib
left a comment
There was a problem hiding this comment.
Some remarks, but veery good job on making this work!
PS: Could you add this PR link to the README? https://github.com/integritee-network/worker/blob/master/docs/README.md
026eb65 to
4ede153
Compare
| } | ||
|
|
||
| /// Trait to peek the queue, without mutating it. | ||
| pub trait PeekParentchainBlockImportQueue<SignedBlockType> { |
haerdib
left a comment
There was a problem hiding this comment.
Looks good, thanks for the effort !
| } | ||
|
|
||
| /// Trait to peek the queue, without mutating it. | ||
| pub trait PeekParentchainBlockImportQueue<SignedBlockType> { |
There was a problem hiding this comment.
Ok, then that's fine. Thanks for the explanation :)
| - Sidechain functionality: https://polkadot.polkassembly.io/post/111 | ||
| - Sidechain flow: https://github.com/integritee-network/worker/issues/567 | ||
| - Peer sync and block production suspension for sidechain: https://github.com/integritee-network/worker/pull/618 | ||
| - Sidechain flow: https://github.com/integritee-network/worker/pull/627 |
light client is initialized
… after" This reverts commit 911d9697d7a4cc892631543ee1f457d482e3dc8a.
uses ocall api
…ead pool to size 2
also need to update latest parentchain header after each sidechain block import when fetching from peer
3d2be2a to
0e674cb
Compare
Description
Part of #567 - integrating all parts in order to have a working setup where blocks are peer fetched on a worker that joins later, and then continues to synchronize using block gossiping.
Important workflow changes
Closes #567
Workflow documentation (activity diagrams)
This is an updated version of the activity diagrams in #567 and document the current workflow activity for:
Sidechain block production
Sidechain block import