Blockchain Node Synchronization via Skeleton Set Parallelism
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Blockchain synchronization processing in node devices is inefficient due to the sequential nature of block synchronization, leading to lag and reduced network consistency.
Innovation Solution
A synchronization processing method that utilizes a skeleton set and synchronization task set to concurrently transmit and fill blocks from a second node device into the skeleton set, improving efficiency by synchronizing multiple blocks at once.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If blocks are synchronized sequentially one by one from other node devices, then the synchronization process is simple to implement, but the synchronization processing efficiency is low and node devices lag behind the network
Solution Approach 1:
The patent divides the synchronization process into multiple independent skeleton sets, where each skeleton set contains multiple skeletons that can be processed in parallel. This segmentation allows the node device to concurrently synchronize multiple blocks through different skeleton sets, transforming the sequential synchronization process into a parallel one, thereby significantly improving synchronization processing efficiency and reducing the time required to catch up with the network.
2Productivity
If multiple synchronization tasks are transmitted concurrently to improve efficiency, then the synchronization speed increases, but the complexity of managing multiple skeletons and tasks increases
Solution Approach 1:
The patent performs preliminary actions by pre-establishing multiple skeleton sets with multiple skeletons before initiating synchronization tasks. Each skeleton is pre-configured with necessary metadata and structure. This preliminary preparation allows subsequent synchronization tasks to be executed concurrently without complex runtime management, as the framework is already in place to handle multiple parallel operations, thus reducing the perceived complexity during actual synchronization execution.
Data Source
AI summary
Embodiments of this application provide a synchronization processing method, apparatus, and device, and a medium. The method includes obtaining a skeleton set and a synchronization task set, the skeleton set being used for storing M blocks to be synchronized by the first node device, the skeleton set comprising P skeletons, the synchronization task set comprising P synchronization tasks, the P skeletons being of a one-to-one correspondence to the P synchronization tasks, and M and P both being positive integers; selecting a second node device from the candidate node set, the second node device being a candidate node device in the candidate node set; concurrently transmitting synchronization tasks in the synchronization task set to the second node device, the second node device performing the synchronization tasks and returning the M blocks; and filling the M blocks into the skeletons in the skeleton set.


