Customizable block sync service #14243
Replies: 1 comment 3 replies
-
I don't see why this isn't at least theoretically possible right now. We've refactored syncing out of If you need to modify how syncing works without completely rewriting the current implementation, you can implement a modified Is there a reason why this model doesn't work for you? |
Beta Was this translation helpful? Give feedback.
-
In subspace, we have a special kind of node called domain which is an execution chain and doesn't have its consensus, all the domain blocks are derived from the consensus chain blocks, so an execution chain can be built by syncing the consensus chain and processing the consensus blocks accordingly (let's call this naive sync), this syncing approach will be used when no peers of execution chain (basically when the execution chain is initially launched), once there are more peers on the network and the node is connected to someone, we plan to support fast sync by doing a state sync so that new nodes can sync from others pretty quickly. So basically, our first requirement is to disable the built-in block sync for the execution chain in Substrate when doing the naive consensus chain sync as it's needless, and we have already seen some issues on our side when these two syncings are enabled at the same time, which could be on our side or something in Substrate but they can just be avoided if the built-in block sync can be toggled off.
Beta Was this translation helpful? Give feedback.
All reactions