Synchronization processing method and related device
The method and apparatus facilitate parallel block synchronization in blockchain networks by using a framework set and task set to synchronize multiple blocks concurrently, enhancing efficiency and reducing processing time.
Patent Information
- Application Number
- JP2022523680
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-24
- Filing Date
- 2021-02-05
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-02-05
AI Technical Summary
Existing blockchain synchronization processes are inefficient, as they often require serial processing of blocks, leading to prolonged synchronization times and reduced network performance.
A method and apparatus that utilize a framework set and synchronization task set to enable parallel processing of block synchronization tasks across multiple node devices, allowing simultaneous synchronization of multiple blocks within a single synchronization process.
This approach significantly enhances synchronization efficiency by enabling the simultaneous synchronization of multiple blocks, thereby reducing overall processing time and improving network performance.
Smart Images

Figure 0007553554000007 
Figure 0007553554000001 
Figure 0007553554000002
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application bearing application number 202010212529.5 and entitled "Synchronous processing method, device, apparatus and medium" filed with the China Patent Office on March 24, 2020, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of blockchain technology, and more particularly to blockchain synchronization processing. [Background technology]
[0003] When a node device in a blockchain network performs a blockchain synchronization process, it obtains the necessary blocks one by one from other node devices (e.g., consensus node devices or synchronization node devices) in the blockchain network. Summary of the Invention
[0004] The embodiments of the present application provide a synchronization method and related device that can effectively improve the efficiency of synchronization.
[0005] According to one aspect, an embodiment of the present application provides a synchronization processing method, the method being executed by a first node device in a blockchain network, the blockchain network including a candidate node set, the candidate node set including a plurality of candidate node devices connected to the first node device, the method including: A step of acquiring a framework set and a synchronization task set, the framework set being for storing M blocks waiting for synchronization of the first node device, the framework set including P frameworks, the synchronization task set including P synchronization tasks, the P frameworks and the P synchronization tasks being in one-to-one correspondence, and M and P being positive integers; selecting a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set; a step of causing the second node device to execute the synchronization tasks in the synchronization task set in parallel and transmit the M blocks; filling each framework in the set of frameworks with the M blocks.
[0006] According to one aspect, an embodiment of the present application provides a synchronization processing device, the synchronization processing device being provided in a first node device in a blockchain network, the blockchain network including a candidate node set, the candidate node set including a plurality of candidate node devices connected to the first node device, and the synchronization processing device including: An acquisition unit configured to acquire a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of a first node device, the framework set includes P frameworks, and the synchronization task set includes P synchronization tasks, the P frameworks and the P synchronization tasks have a one-to-one correspondence, and M and P are both positive integers; The present invention also includes a processing unit configured to select a second node equipment from a candidate node set, the second node equipment being at least one candidate node equipment in the candidate node set, and to cause the second node equipment to execute the synchronization tasks and return M blocks by sending synchronization tasks in the synchronization task set in parallel to the second node equipment, and to fill the M blocks into each framework in the framework set.
[0007] According to one aspect, an embodiment of the present application provides a synchronization processing device, the synchronization processing device being a first node device in a blockchain network, the blockchain network including a candidate node set, the candidate node set including a plurality of candidate node devices connected to the first node device, the synchronization processing device including an input device and an output device; A processor adapted to execute one or more instructions; The present invention further comprises a computer storage medium having one or more instructions stored thereon, the one or more instructions being loaded by the processor to perform the synchronization processing method of the above aspect.
[0008] According to one aspect, an embodiment of the present application provides a computer storage medium having one or more instructions stored thereon, the one or more instructions being loaded by a processor to perform the synchronization method of the above aspect.
[0009] According to one aspect, an embodiment of the present application provides a computer program product including instructions which, when run on a computer, cause the computer to perform the synchronization method of the above aspect. Effect of the Invention
[0010] In an embodiment of the present application, when a first node device performs a synchronization process, the first node device obtains a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of the first node device, and selects a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set, and transmits the synchronization tasks in the synchronization task set to the second node device in parallel to cause the second node device to execute the synchronization tasks and return the M blocks, and the first node device further fills the M blocks into each framework in the framework set. By using such a synchronization process method by filling frameworks, synchronization tasks corresponding to multiple frameworks can be transmitted in parallel in one synchronization process. In this way, more blocks can be synchronized collectively based on multiple frameworks, improving the efficiency of the synchronization process. [Brief description of the drawings]
[0011] [Figure 1]FIG. 1 illustrates a basic architecture diagram of a blockchain according to one exemplary embodiment of the present application. [Diagram 2] FIG. 1 illustrates a schematic structural diagram of a blockchain according to one exemplary embodiment of the present application. [Diagram 3] 1 illustrates a schematic architecture diagram of a blockchain network according to one exemplary embodiment of the present application. [Figure 4] 1 shows a structural schematic diagram of a framework according to one exemplary embodiment of the present application; [Diagram 5] 2 illustrates a flowchart of a synchronization processing method according to an exemplary embodiment of the present application. [Figure 6] 4 illustrates a flowchart of another synchronization processing method according to an exemplary embodiment of the present application. [Figure 7] FIG. 2 illustrates a structural schematic diagram of a synchronization processing device according to an exemplary embodiment of the present application; [Figure 8] FIG. 2 illustrates a structural schematic diagram of another synchronization processing device according to an exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] In order to more clearly describe the technical solutions in the embodiments of the present application, the following briefly describes the drawings necessary for describing the embodiments. Of course, the above drawings are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without any creative efforts.
[0013] Hereinafter, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Of course, the described embodiments are not all the embodiments, but only some of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments that a person skilled in the art can obtain without any creative effort are included in the scope of protection of the present application.
[0014] The embodiment of the present application relates to a block chain technology. Block chain is a distributed basic architecture with distributed storage characteristics, specifically, a data structure composed of data blocks in a link-like manner according to time order, which can safely store data that can be verified within the system and has a predecessor-subsequence relationship, and ensures that data cannot be tampered with or forged by encryption.
[0015] 1 shows a basic architecture diagram of a blockchain according to an exemplary embodiment of the present application. As shown in FIG. 1, the basic architecture of the blockchain mainly includes five hierarchical structures, 101-105, from bottom to top.
[0016] (1) Information data and Merkle tree are located in the lower layer 101. The information data here is original data that is required to be distributed to the blockchain network but does not form a block, and may be, for example, business data, transaction data, etc. In order to write these original data into a block, further processing is required (for example, verification by each node in the blockchain network and hash calculation, etc.). The Merkle tree is an important component of the blockchain technology, and the blockchain does not directly store the original plain data, but performs a hash calculation on the original data and stores it in the form of a hash value. The Merkle tree is used to collect hash values formed by performing hash calculations on multiple original data according to a binary tree structure and store them in the block body of the block.
[0017] (2) The block is located in the hierarchy 102. The block is a data block, and the information data of the lower hierarchy 101 is written into the block of the hierarchy 102 after further processing. A plurality of blocks are connected in order as a chain structure, i.e., form a blockchain. In the chain structure, the previous block and the adjacent subsequent block have a parent-child relationship. FIG. 2 shows a schematic structure diagram of a blockchain according to one exemplary embodiment of the present application. As shown in FIG. 2, block i-1 (i is a positive integer), block i, and block i+1 are connected in order as a chain structure. Block i is divided into two parts: a block header and a block body. The block header includes a digest value of the previous block i-1 and a digest value of the current block i (i.e., the Merkle root of the current block). The block body includes the complete data of the current block i, and is organized in the form of a Merkle tree. Block i-1 and block i have a parent-child relationship, i.e., block i-1 is the parent block of block i, and block i is the child block of block i-1. Similarly, block i is the parent block of block i+1, and block i+1 is the child block of block i.
[0018] (3) The protocols and mechanisms that the blockchain complies with are located in stratum 103. These protocols may include P2P (Peer-to-Peer network) protocols, and the mechanisms may include, but are not limited to, broadcast mechanisms, consensus mechanisms (including core mechanisms such as PoW (Proof Of Work) mechanisms, POS (Proof Of Stake) mechanisms, etc.).
[0019] (4) The blockchain network is located at layer 104. The blockchain network is composed of multiple node devices. The node devices may be computer devices, including, but not limited to, PCs (Personal Computers), servers, miners, smartphones, tablets, portable computers, etc. Each node device in the blockchain network is networked in a P2P manner, and the node devices communicate with each other according to the P2P protocol. Each node device jointly follows a broadcast mechanism and a consensus mechanism (including core mechanisms such as PoW mechanism and POS mechanism) to jointly ensure that data in the blockchain cannot be tampered with or forged, while at the same time realizing the characteristics of the blockchain such as decentralization and uncertainty.
[0020] (5) Smart contracts are located in the upper layer 105. A smart contract is a set of scenario-aware programming rules and logic, which is a distributed, information-sharable program code that is placed on the blockchain. Each party that enters into a contract agrees on the contract contents and places them on the blockchain in the form of a smart contract, that is, the contract can be executed automatically on behalf of each signatory without relying on any central authority.
[0021] The types of blockchain may include public blockchain, private blockchain, and consortium blockchain. Public blockchain is public, and anyone can join and access the blockchain. Blocks in the public blockchain may be viewed by anyone, anyone can start a transaction in the public blockchain, and anyone can participate in the consensus process of the public blockchain at any time. Private blockchain is used only within a private organization, and the read / write authority in the blockchain and the authority to participate in accounting are set according to the rules of the private organization. It is generally used for data management within a company, accounting audit, etc. Consortium blockchain is only available to consortium members, and the read / write authority in the blockchain and the authority to participate in accounting are established according to the consortium rules. It is generally used in scenes such as transactions between institutions, settlement or settlement. The basic architecture of blockchain shown in Figure 1 is the basis for the development of each type of blockchain. As can be seen, there are some differences in the networking methods of blockchain networks corresponding to different types of blockchain. Due to the characteristics of blockchain, such as decentralization, distributed storage, and data immutability and forgery, more and more business activities (e.g., lending activities, financial transaction activities) are being carried out based on blockchain technology, thereby utilizing the characteristics of blockchain to ensure the fairness and openness of business activities.
[0022] FIG. 3 illustrates a schematic architecture diagram of a blockchain network according to one exemplary embodiment of the present application. The blockchain network includes a plurality of node devices (seven node devices are illustrated in the drawing). As shown in FIG. 4, node devices 1 and 2 are consensus node devices, and node devices 3 to 7 are all synchronization node devices. A consensus node device is a node device that can not only execute a block synchronization process but also participate in a block consensus process. A synchronization node device is a node device that can only execute a block synchronization process and cannot participate in a block consensus process.
[0023] Blockchain is a distributed application mode. Each node device in the blockchain network stores one blockchain. Specifically, in the blockchain network shown in FIG. 3, node device 1 stores blockchain 1 in its storage space, node device 2 stores blockchain 2 in its storage space, and node device 3 stores blockchain 3 in its storage space, and so on. Due to factors such as differences in network connection performance, differences in processing performance, and differences in time to join the blockchain network, differences occur in the blockchains stored in the node devices of the blockchain network. Each node device in the blockchain network needs to maintain the consistency of the blockchains stored in each node device by means of synchronization or the like. For example, there are already n (n is a positive integer) node devices in the blockchain network. A certain node device n+1 newly joins the blockchain network. For the node device n+1, no blocks are stored in its storage space. The block height of the blockchain n+1 of the node device n+1 is 0. There may be 10001 blocks stored in a node device n that already exists in the blockchain network, and the block height of the blockchain n stored in the storage space of the node device n may be 10000. Therefore, the node device n+1 is behind the node device n. The node device n+1 needs to perform a block synchronization process, obtain all blocks between block height 0 and block height 10000, update its own blockchain n+1, and catch up with the node device n. In practical applications, a new block generated in the blockchain network needs to be consensus-processed by a consensus node device first, and after the consensus process is successful, the consensus node device adds the new block to the blockchain stored locally in the consensus node device.The synchronization node device in the blockchain network further obtains the new block from the consensus node device, adds it to the blockchain stored locally in the synchronization node device, and performs a block synchronization process. In general, the blockchain stored in the consensus node device can be said to be the longest (or the most complete) blockchain in the blockchain network, and the blockchain stored in the consensus node device can be used as a reference blockchain in the synchronization process.
[0024] According to the architecture of the blockchain network shown in FIG. 3, an embodiment of the present application provides a synchronization processing method. The concept of a framework is introduced into the method. FIG. 4 shows a structural schematic diagram of a framework according to an exemplary embodiment of the present application. The framework is a data structure. One framework includes a plurality of data units 401, and each data unit is for storing one block. Referring to the example shown in FIG. 4, if any one node device (assumed to be the node device 3 shown in FIG. 3) in the blockchain network needs to synchronize 100 blocks from block 1 to block 100, the synchronization processing process of the node device 3 may include the following steps (1)-(4).
[0025] In (1), a framework set is constructed based on a synchronization wait block, and the framework set includes one or more frameworks.
[0026] As shown in FIG. 4, the framework set includes a total of 10 frameworks, each of which includes 10 data units 401, which are prepared and used by the node device 3 to store the synchronous blocks after the node device 3 obtains the synchronous blocks. Taking framework 1 as an example, framework 1 includes 10 data units 401, which are arranged in order, with the first data unit for storing block 1 and the second data unit for storing block 2, by analogy. In the framework set, the number of data units included in each framework may be the same, and as shown in FIG. 4, each framework may include 10 data units. Of course, the number of data units included in each framework may be different, for example, framework 1 in FIG. 4 may include 10 data units, framework 2 may include 5 data units, and framework 3 may include 15 data units. The node device 3 may set the number of frameworks and the number of data units included in the frameworks according to the actual situation. The actual situation here may include, but is not limited to, the number and processing capabilities of node devices in the candidate node set, the actual parallel processing capabilities of the node devices 3, and the like.
[0027] (2) For the framework set, a synchronization task set is created, in which one or more synchronization tasks are included, and one framework corresponds to one synchronization task.
[0028] As shown in FIG. 4, framework 1 corresponds to synchronization task 1, framework 2 corresponds to synchronization task 2, and framework 3 corresponds to synchronization task 3, and so on. A synchronization task corresponding to each framework is used to instruct the node device 3 to return a plurality of blocks for storage of the framework. For example, synchronization task 1 corresponding to framework 1 is used to instruct the node device 3 to return blocks 1-10 of framework 1 for storage. Also, for example, synchronization task 2 corresponding to framework 2 is used to instruct the node device 3 to return blocks 11-20 of framework 2 for storage. As can be seen, the synchronization task includes instruction information. The instruction information may include indexes of blocks corresponding to the last two data units in the framework. The index here may be a hash value of the block, or a generation timestamp of the block, or a block height corresponding to the block. In this way, after receiving the synchronization task, the other node device returns the two blocks in the framework and all blocks between the two blocks to the node device 3 based on the indexes of the two blocks in the instruction information. The instruction information may include indices of all blocks for storage in the framework. In this way, after receiving the synchronization task, the other node devices return all required blocks to the node device 3 based on the indices of all required blocks.
[0029] In (3), a second node device is selected, and the second node device is at least one node device for performing a synchronization task in the blockchain network that is connected to the first node device.
[0030] First, a candidate node set is determined, and the candidate node set includes the candidate node devices directly connected to node device 3. As shown in FIG. 3, the candidate node set of node device 3 includes node device 1, node device 4 to node device 7. Since node device 1 is a consensus node device and also needs to execute a consensus task, in order to avoid causing a processing burden on node device 1 and at the same time improve synchronization efficiency, node device 4 to node device 7 can be selected from the candidate node set as second node devices to execute the synchronization task. Next, a corresponding second node device is assigned to each synchronization task. The assignment here mainly includes the following policies:
[0031] Policy 1: Allocation according to storage status. A synchronization task is allocated to a second node device in which the corresponding block is stored. For example, if synchronization task 1 attempts to synchronize blocks 1 to 10, a second node device in which blocks 1 to 10 are stored is selected to execute synchronization task 1. Also, for example, if synchronization task 2 attempts to synchronize blocks 81 to 90, a second node device in which blocks 81 to 90 are stored is selected to execute synchronization task 2.
[0032] Policy 2: Allocate according to processing performance. Depending on processing performance, one of the multiple second node devices can be selected to execute the synchronization task. For example, if node device 4 has better processing performance than node device 5, node device 4 can be selected to execute synchronization task 1. Processing performance includes, but is not limited to, CPU processing speed, amount of parallel processing, network bandwidth resources, etc. Higher processing performance indicates a higher execution rate and faster execution of the synchronization task.
[0033] Policy 3: Assign according to the trust level. The trust level is information for expressing the trust level of a node device, and the higher the trust level, the higher the trust level of the node device. In general, the trust level of a node device used in a public institution is higher than that of a node device used in a non-public institution. In one embodiment, the trust level may be expressed as a score. For example, the trust level score range includes [0, 10]. The higher the trust level score, the higher the trust level. In another embodiment, the trust level may be expressed as a grade. For example, the trust level grade includes three grades: high, medium, and low. The trust level of the three grades decreases sequentially. According to the trust level, one of the multiple second node devices can be selected to execute a certain synchronization task. For example, the trust level of node device 4 is higher than that of node device 5, and node device 4 can be selected to execute synchronization task 1.
[0034] One synchronization task is executed by one node device. One node device can execute multiple synchronization tasks. As can be understood, the above policies are not exhaustive, and the embodiments of the present application can be applied to other policies. For example, a random allocation policy, that is, one second node device can be randomly selected from multiple second node devices to execute a certain synchronization task. Also, for example, a weighted average policy, that is, weights are set for multiple influence factors (memory status factor, trust factor, processing performance factor), and one of the multiple second node devices is selected in a weighted average manner to execute the synchronization task. In addition, in the above policies 2 and 3, if the second node device selected to execute a certain synchronization task does not store a block waiting for synchronization indicated by the synchronization task, the second node device can obtain the block from another node device (e.g., a consensus node device) in the blockchain network and return it to the first node device. For example, when synchronization task 1 is to synchronize blocks 1 to 10, node device 4 is selected to execute synchronization task 1 according to policy 2 or policy 3. However, blocks 1 to 10 are not stored in the node device 4. Therefore, the node device 4 can obtain blocks 1 to 10 from the consensus node device and send them back to the first node device.
[0035] In (4), a plurality of synchronization tasks are transmitted in parallel to the second node device, and these synchronization tasks are executed by the second node device.
[0036] Taking the example shown in FIG. 4, synchronization task 1 and synchronization task 3 are executed by node equipment 4, synchronization task 2, synchronization task 4, and synchronization task 6 are executed by node equipment 5, synchronization task 5, synchronization task 6, and synchronization task 9 are executed by node equipment 6, and synchronization task 7, synchronization task 8, and synchronization task 10 are executed by node equipment 7. Therefore, node equipment 3 can transmit the 10 synchronization tasks in parallel at once. The second node equipments (i.e., node equipment 4, node equipment 5, node equipment 6, and node equipment 7) internally execute these synchronization tasks in a serial or parallel manner and send back the blocks required by node equipment 3 to node equipment 3, so that node equipment 3 can obtain the blocks to be synchronized through a single synchronization processing process.
[0037] In (5), the blocks returned from the second node device are filled into each framework in the framework set.
[0038] 4 as an example, blocks 1 to 10 returned by node device 4 executing synchronization task 1 are filled into each data unit of framework 1. Blocks 21 to 30 returned by node device 4 executing synchronization task 3 are filled into each data unit of framework 3. After filling into each framework is completed, the first node device can add the blocks stored in each framework in order (for example, according to the forward / backward order of the generation timestamps of each block) to the local blockchain of the first node device, thereby realizing the update of the local blockchain of the first node device.
[0039] It should be noted that if a synchronization task cannot be assigned to a second node device to execute it using any policy, for example, if there is no node device in the candidate node set that has all the blocks required for a framework stored therein, the construction of the framework may not be reasonable, and the framework may be reconstructed and the synchronization task may be updated again. Of course, it is also possible to follow the conventional synchronization method and synchronize the necessary blocks of the framework corresponding to the synchronization task that has failed to be assigned to the node device one by one.
[0040] The synchronization processing method by filling frameworks provided by the embodiment of the present application can synchronize multiple blocks in a batch based on one synchronization task corresponding to one framework, which effectively improves the synchronization processing efficiency. In addition, in one synchronization processing process, synchronization tasks corresponding to multiple frameworks can be sent in parallel. In this way, more blocks can be synchronized in a batch based on multiple frameworks, which further improves the synchronization processing efficiency.
[0041] 5 shows a flowchart of a synchronization processing method according to an exemplary embodiment of the present application. The method is executed by a first node device in a blockchain network, and the first node device may be any one of the node devices in the blockchain network. The following embodiment of the present application takes as an example that the first node device is the node device 3 in the blockchain network shown in FIG. 3. The blockchain network includes a candidate node set, and the candidate node set includes a plurality of candidate node devices connected to the first node device, and the method includes the following steps S501-S504.
[0042] In S501, a framework set and a synchronization task set are obtained, the framework set is for storing M blocks waiting for synchronization of the first node device, the framework set includes P frameworks, and the synchronization task set includes P synchronization tasks, one framework corresponds to one synchronization task, and M and P are both positive integers.
[0043] An example will be given of any one of the frameworks in the framework set. The any one of the frameworks is represented as a target framework. The target framework includes N data units, the N data units are for storing N blocks waiting for synchronization of the first node device, the N blocks and the N data units correspond one-to-one, N is a positive integer, and N≦M. The N data units in the target framework are arranged in order, the N blocks are consecutive blocks in the blockchain network, and the i-th data unit of the N data units is for storing the i-th block of the N blocks, i is a positive integer, and 1≦i≦N. Referring to the example shown in FIG. 4, the target framework may be any one of frameworks 1-10. Taking the target framework as framework 1 as an example, N is 10, the first data unit of the target framework is for storing block 1, and the second data unit of the target framework is for storing block 2, and so on. The target framework corresponds to a target synchronization task, and the target synchronization task includes instruction information, which may include indexes of blocks corresponding to the last two data units in the target framework. The indexes here may be hash values of the blocks, or the generation timestamps of the blocks, or the block heights corresponding to the blocks. The instruction information may include indexes of all blocks for storage in the framework. For example, taking the target framework as framework 1 shown in FIG. 4, the target synchronization task includes instruction information, which may include indexes of block 1 and block 10, or may include indexes of block 1-block 10.
[0044] It can be understood that in the embodiment of the present application, the data units of the target framework are arranged in order, which is merely an example, and the data units of the target framework may not be arranged in order. Of course, the N blocks stored in the target framework may not be consecutive blocks. Or, the data units in the target framework may not store the N blocks in order. In this case, the indication information included in the target synchronization task may include the indexes of the N blocks.
[0045] In S502, a second node device is selected from the candidate node set. The second node device is at least one node device in the candidate node set for executing the synchronization task. This step may select the second node device using the policy. The policy may include, but is not limited to, any one of the following: selection according to memory status, selection according to processing performance, and selection according to creditworthiness.
[0046] In S503, the synchronization tasks in the synchronization task set are transmitted in parallel to the second node device, causing the second node device to execute the synchronization tasks and return M blocks.
[0047] The parallel transmission here includes transmitting all at once in parallel and transmitting multiple times in parallel. Transmitting all at once in parallel means that the first node device transmits all the synchronization tasks in the synchronization task set to the second node device in a batch, and thus all the required blocks can be synchronized all at once. Transmitting multiple times in parallel means that the first node device divides the synchronization tasks in the synchronization task set and transmits these synchronization tasks in parallel in a multiple number of times. As a division method, for example, according to the order of the blocks, a batch of synchronization tasks corresponding to a block with an earlier index precedes a batch of synchronization tasks corresponding to a block with a later index. In S504, M blocks are filled into each framework in the framework set.
[0048] The filling process is a process of storing blocks in corresponding data units. The first node device fills the M blocks returned from the second node device into the data units of each framework in order. Taking the target framework as an example, the target framework corresponds to the target synchronization task, the target framework is one in the framework set, and the target synchronization task is one in the synchronization task set. The target second node device is one second node device selected for the target synchronization task in S502. After the target synchronization task is sent to the target second node device by S503, the target second node device executes the target synchronization task and returns N blocks to the first node device. The first node device fills the N blocks into the N data units of the target framework respectively.
[0049] In an embodiment of the present application, when a first node device performs a synchronization process, the first node device obtains a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of the first node device, and selects a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set, and causes the second node device to execute the synchronization task and return M blocks by transmitting the synchronization tasks in the synchronization task set to the second node device in parallel, and the first node device further fills the M blocks into each framework in the framework set. By using such a synchronization process method by filling frameworks, multiple blocks can be synchronized in a batch based on one synchronization task corresponding to one framework, which effectively improves the efficiency of the synchronization process. In one synchronization process, synchronization tasks corresponding to multiple frameworks can be transmitted in parallel. In this way, more blocks can be synchronized in a batch based on multiple frameworks, which further improves the efficiency of the synchronization process.
[0050] 6 shows a flowchart of a synchronization processing method according to another exemplary embodiment of the present application. The method is executed by a first node device in a blockchain network, and the first node device may be any one of the node devices in the blockchain network. The subsequent embodiment of the present application will be described by taking as an example that the first node device is the node device 3 in the blockchain network shown in FIG. 3. The blockchain network includes a candidate node set, and the candidate node set includes a plurality of candidate node devices connected to the first node device, and the method includes the following steps S601-S608.
[0051] In S601, the block height of a reference blockchain in a blockchain network is obtained, and the block height of a first blockchain stored locally in a first node device is obtained.
[0052] The reference blockchain is the longest (or most complete) blockchain among the blockchains stored in each node device in the blockchain network, and is generally the blockchain stored in the consensus node device. The block height is for indicating the number of blocks connected on the blockchain. The block height is a flag of the block and may be used to indicate the position of the block in the blockchain. The height of the genesis block in the blockchain is 0 by default. The block height of the first block after the genesis block is 1 (the first block is abbreviated as block 1), and the height of the second block after the genesis block is 2 (the second block is abbreviated as block 2), and so on. For example, if the block height of the current block of the reference blockchain is 100 (the current block may be abbreviated as block 100), it represents that 100 blocks are stacked on top of the genesis block, that is, the number of blocks on the reference blockchain formed between the genesis block and block 100 is 101.
[0053] In S602, M blocks, which is the difference between the block height of the reference block chain and the block height of the first block chain, are determined as blocks waiting for synchronization of the first node device, where M is a positive integer.
[0054] If the block height of the reference blockchain is 200 and the block height of the first blockchain is 100, the difference of 100 blocks between them includes block 101-block 200, and these difference of 100 blocks are the blocks waiting for synchronization of the first node device, i.e., in this case, M=100.
[0055] In S603, a framework set is constructed based on the M blocks, and the framework set includes P frameworks, where P is a positive integer. The construction of the framework set may refer to the example shown in FIG. 4, and the description is omitted here.
[0056] In S604, a synchronization task set is created for the framework set, and the synchronization task set includes P synchronization tasks, and one framework corresponds to one synchronization task. In S605, a second node device is selected from the candidate node set, and the second node device is at least one candidate node device in the candidate node set.
[0057] In one embodiment, this corresponds to the above policy 1. That is, in S605, a second node device may be selected from the candidate node set in a manner that performs allocation according to the storage situation. The selection process of S605 may include the following steps s21-s22. In s21, a block storage statement is received for each candidate node device in the candidate node set.
[0058] The block storage statement includes the block storage status of the candidate node device. For example, if the block storage statement of a candidate node device includes the indexes of block 1 to block 10, it indicates that the candidate node device is storing block 1 to block 10.
[0059] In s22, at least one candidate node device is selected from the candidate node set based on the block storage statement of each candidate node device in the candidate node set, and determined as a second node device.
[0060] In this step, for a certain synchronization task, a node device that declares that a block designated by the synchronization task is stored may be determined as a second node device that executes the synchronization task. In this way, it is ensured that the second node device has the ability to execute the synchronization task and can return the block designated by the synchronization task. In s21-s22, by selecting the second node device according to the block storage status, the probability that the synchronization task will be successfully executed can be improved, and the success rate of the synchronization process can be improved.
[0061] In one embodiment, this corresponds to the above policy 2. That is, in S605, a second node device may be selected from the candidate node set in a manner that performs allocation according to processing performance. The selection process in S605 may include the following steps s23-s24. In s23, the processing performance of each candidate node device in the candidate node set is acquired. In s24, at least one candidate node device in the candidate node set whose processing performance is higher than a performance threshold is determined as a second node device.
[0062] In s23-s24, the processing performance includes, but is not limited to, a CPU processing speed, a parallel processing amount, a network bandwidth resource, and the like. Higher processing performance indicates higher execution degree, and such a second node device can cooperate with the first node device in the synchronization process more quickly. In this way, the safety of the synchronization process can be improved. The performance threshold may be set according to the actual situation. For example, the performance threshold may be an average value of the processing performance of each candidate node device in the candidate node set. That is, at least one candidate node device having a processing performance higher than the average value may be determined as the second node device.
[0063] In one embodiment, this corresponds to the above policy 3. That is, in S605, a second node device may be selected from the candidate node set in a manner of allocation according to the trust. The selection process in S605 may include the following steps s25-s26. In s25, the trustworthiness of each candidate node device in the candidate node set is obtained. In s26, at least one candidate node device in the candidate node set having a trustworthiness higher than a trustworthiness threshold is determined as a second node device.
[0064] In s25-s26, the trust level is for representing the trust level of the node device. The higher the trust level, the more trustworthy the node device is. The trust level threshold may be set according to the actual situation. For example, the trust level threshold may be a score of 5. At least one candidate node device with a trust level score higher than 5 may be determined as the second node device. The second node device is selected according to the trust level. In this way, it is possible to prevent some malicious nodes from disrupting the synchronization process, and improve the security of the synchronization process.
[0065] In S606, the synchronization tasks in the synchronization task set are transmitted in parallel to the second node device, and the second node device is caused to execute the synchronization tasks and return M blocks. In S607, M blocks are filled into each framework in the framework set.
[0066] In S608, the M blocks stored in each data unit are read from each framework, and the M blocks that have been read are sequentially added to the first blockchain that is stored locally in the first node device.
[0067] After the filling of each framework is completed, the first node device can add the blocks stored in each framework to the local blockchain of the first node device in order (for example, according to the order of the generation timestamps of each block), thereby realizing the update of the local blockchain of the first node device. Taking the target framework as an example, the first node device reads N blocks stored in N data units in order from the target framework, and adds the read N blocks to the first blockchain stored locally in the first node device. The framework is a data structure, and after storing N blocks in the target framework, the N blocks are read in order and added in order to the first blockchain stored locally in the first node device. In this way, the N blocks are successfully updated on the first blockchain. After the blocks of all the frameworks in the framework set are added in order to the first blockchain, the first node device can complete the synchronization of all blocks and catch up with other node devices in the blockchain network in a timely manner.
[0068] In an embodiment of the present application, when a first node device performs synchronization processing, it obtains a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of the first node device, and selects a second node device from the candidate node set, and transmits the synchronization tasks in the synchronization task set to the second node device in parallel, thereby causing the second node device to execute the synchronization tasks and return M blocks, and the first node device further fills each framework in the framework set with the M blocks. By such a synchronization processing method by framework filling, multiple blocks can be synchronized in a batch based on one synchronization task corresponding to one framework, which effectively improves the synchronization processing efficiency. In one synchronization processing process, synchronization tasks corresponding to multiple frameworks can be transmitted in parallel. In this way, more blocks can be synchronized in a batch based on multiple frameworks, which further improves the efficiency of the synchronization processing.
[0069] FIG. 7 shows a structural schematic diagram of a synchronization processing device according to an exemplary embodiment of the present application. The synchronization processing device is provided in a first node device in a blockchain network. Specifically, the synchronization processing device may be a computer program (including program code) that runs in the first node device. For example, the synchronization processing device may be an application software in the first node device. The synchronization processing device may be used to execute the steps in the embodiments shown in FIG. 5-FIG. 6. The first node device may be any one of the node devices in the blockchain network. For example, the first node device is a node device in the blockchain network shown in FIG. 3. The blockchain network includes a candidate node set, and the candidate node set includes a plurality of candidate node devices connected to the first node device. As shown in FIG. 7, the synchronization processing device includes: An acquisition unit 701 configured to acquire a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of a first node device, the framework set includes P frameworks, and the synchronization task set includes P synchronization tasks, the P frameworks and the P synchronization tasks have a one-to-one correspondence, and M and P are both positive integers; The present invention also includes a processing unit 702 configured to select a second node equipment from the candidate node set, the second node equipment being at least one candidate node equipment in the candidate node set, and to cause the second node equipment to execute the synchronization tasks and return M blocks by sending synchronization tasks in the synchronization task set in parallel to the second node equipment, and to fill the M blocks into each framework in the framework set.
[0070] In one embodiment, the framework set includes a target framework, the target framework being any one of the P frameworks, the target framework including N data units, the N data units being for storing N blocks waiting for synchronization of the first node device, the N blocks and the N data units being in one-to-one correspondence, N being a positive integer, and N≦M.
[0071] In one embodiment, the N data units in the target framework are arranged in order, the N blocks are consecutive blocks in the blockchain network, and the i-th data unit among the N data units is for storing the i-th block among the N blocks, where i is a positive integer, and 1≦i≦N.
[0072] In one embodiment, the target second node device is any one of the second node devices, and the target second node device is for performing a target synchronization task corresponding to the target framework and returning N blocks to the first node device, and a specific manner in which the first node device fills the N blocks into the target framework is to respectively fill the N blocks into N data units of the target framework.
[0073] In one embodiment, the processing unit 702 further comprises: The method is configured to read N blocks stored in the N data units from the target framework and sequentially add the read N blocks to a first blockchain stored locally on the first node device.
[0074] In one embodiment, the processing unit 702 specifically: Obtain a trust value for each candidate node device in the candidate node set; The node device is configured to determine, as the second node device, at least one candidate node device in the candidate node set having a trustworthiness higher than a trustworthiness threshold.
[0075] In one embodiment, the processing unit 702 specifically: Obtain the processing performance of each candidate node device in the candidate node set; The node device is configured to determine, as the second node device, at least one candidate node device in the candidate node set whose processing performance is higher than a performance threshold.
[0076] In one embodiment, the processing unit 702 specifically: receiving a block storage statement for each candidate node device in the candidate node set; The node selection unit is configured to select at least one candidate node device from the candidate node set as a second node device based on the block storage statement of each candidate node device in the candidate node set.
[0077] In one embodiment, the acquisition unit 701 specifically includes: Obtain a block height of a reference blockchain in a blockchain network, and obtain a block height of a first blockchain locally stored in a first node device; Determine M blocks, which is the difference between the block height of the reference blockchain and the block height of the first blockchain, as blocks waiting for synchronization of the first node device; It is configured to build a framework set based on the M blocks.
[0078] According to an embodiment of the present application, each or all of the units in the synchronization processing unit shown in FIG. 7 may be combined and configured as one or more separate units, or some of the units may be functionally divided into multiple smaller units. This can achieve the same operation without affecting the realization of the technical effect of the embodiment of the present application. The above units are divided based on logic functions. In actual applications, the function of one unit may be realized by multiple units, or the functions of multiple units may be realized by one unit. In other embodiments of the present application, the synchronization processing device may include other units. According to actual applications, these functions may be realized with the support of other units, and are realized with the support of multiple units. According to another embodiment of the present application, a computer program (including program code) capable of executing each step of the corresponding method shown in Figures 5-6 can be executed on a general-purpose computing device such as a computer including a processing element and a storage element such as a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), etc., to configure a synchronization processing device shown in Figure 7, and realize a synchronization processing method according to an embodiment of the present application. The computer program may be written in a computer-readable recording medium, for example, and loaded into the computing device by the computer-readable recording medium and executed thereon.
[0079] In an embodiment of the present application, when a first node device performs synchronization processing, it obtains a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of the first node device, and selects a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set, and causes the second node device to execute the synchronization task and return M blocks by transmitting the synchronization tasks in the synchronization task set to the second node device in parallel, and the first node device further fills the M blocks into each framework in the framework set. By such a synchronization processing method by framework filling, multiple blocks can be synchronized in a batch based on one synchronization task corresponding to one framework, which effectively improves the synchronization processing efficiency. In one synchronization processing process, synchronization tasks corresponding to multiple frameworks can be transmitted in parallel. In this way, more blocks can be synchronized in a batch based on multiple frameworks, which further improves the efficiency of the synchronization processing.
[0080] FIG. 8 shows a structural schematic diagram of a synchronization processing device according to one exemplary embodiment of the present application. The synchronization processing device is a first node device in a blockchain network, and the first node device may be any one of the node devices in the blockchain network, for example, the first node device is a node device in the blockchain network shown in FIG. 3. The blockchain network includes a candidate node set, and the candidate node set includes a plurality of candidate node devices connected to the first node device. As shown in FIG. 8, the synchronization processing device includes at least a processor 801, an input device 802, an output device 803, and a computer storage medium 804. The processor 801, the input device 802, the output device 803, and the computer storage medium 804 may be connected via a bus or in other manners. The computer storage medium 804 may be stored in a memory of the synchronization processing device. The computer storage medium 804 is for storing a computer program, the computer program includes program instructions, and the processor 801 is for executing the program instructions stored in the computer storage medium 804. The processor 801 (also referred to as CPU (Central Processing Unit)) is the computing and control core of a synchronous processing device, which is suitable for implementing one or more instructions, and in particular for implementing the processes or functions of the method according to the embodiments of the present application by loading and executing one or more instructions.
[0081] The embodiment of the present application further provides a computer storage medium (Memory). The computer storage medium is a storage device in the synchronous processing device, for storing programs and data. As can be understood, the computer storage medium here may include a built-in storage medium in the synchronous processing device, and may of course include an extended storage medium supported by the synchronous processing device. The computer storage medium provides a storage space. The operating system of the synchronous processing device is stored in the storage space. And, the storage space further stores one or more instructions to be loaded and executed by the processor 801. These instructions may be one or more computer programs (including program code). It should be explained that the computer storage medium here may be a high-speed RAM memory, or a non-volatile memory, such as at least one magnetic disk memory. Optionally, at least one computer storage medium may be remote from the processor.
[0082] The computer storage medium stores one or more instructions, and the processor 801 loads and executes the one or more instructions stored in the computer storage medium to realize the steps in the embodiment of the above-mentioned synchronization processing method. In a specific implementation, the one or more instructions in the computer storage medium are loaded by the processor 801 and: A step of acquiring a framework set and a synchronization task set, the framework set being for storing M blocks waiting for synchronization of the first node device, the framework set including P frameworks, the synchronization task set including P synchronization tasks, the P frameworks and the P synchronization tasks being in one-to-one correspondence, and M and P being positive integers; selecting a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set; a step of causing the second node device to execute the synchronization tasks in the synchronization task set in parallel and transmit the M blocks; Filling each framework in the set of frameworks with M blocks.
[0083] In one embodiment, the framework set includes a target framework, the target framework being any one of the P frameworks, the target framework including N data units, the N data units being for storing N blocks waiting for synchronization of the first node device, the N blocks and the N data units being in one-to-one correspondence, N being a positive integer, and N≦M.
[0084] In one embodiment, the N data units in the target framework are arranged in order, the N blocks are consecutive blocks in the blockchain network, and the i-th data unit among the N data units is for storing the i-th block among the N blocks, where i is a positive integer, and 1≦i≦N.
[0085] In one embodiment, the target second node device is any one of the second node devices, and the target second node device is for performing a target synchronization task corresponding to the target framework and returning N blocks to the first node device, and a specific manner in which the first node device fills the N blocks into the target framework is to respectively fill the N blocks into N data units of the target framework.
[0086] In one embodiment, one or more instructions in a computer storage medium are loaded by the processor 801 to: The method further includes reading N blocks stored in the N data units from the target framework, and sequentially adding the read N blocks to a first blockchain stored locally in the first node device.
[0087] In one embodiment, one or more instructions in the computer storage medium are loaded by the processor 801 to execute the step of selecting a second node device from the candidate node set, specifically, obtaining a trust value for each candidate node device in the candidate node set; and determining, as a second node device, at least one candidate node device in the candidate node set whose trustworthiness is higher than a trustworthiness threshold.
[0088] In one embodiment, one or more instructions in the computer storage medium are loaded by the processor 801 to execute the step of selecting a second node device from the candidate node set, specifically, acquiring processing performance of each candidate node device in the candidate node set; and determining, as a second node device, at least one candidate node device in the candidate node set whose processing performance is higher than a performance threshold.
[0089] In one embodiment, one or more instructions in the computer storage medium are loaded by the processor 801 to execute the step of selecting a second node device from the candidate node set, specifically, receiving a block storage statement for each candidate node device in a set of candidate nodes; and selecting at least one candidate node device from the candidate node set as a second node device based on the block storage statement of each candidate node device in the candidate node set.
[0090] In one embodiment, the one or more instructions in the computer storage medium are loaded by the processor 801 to execute the step of obtaining a framework set, specifically, Obtaining a block height of a reference blockchain in a blockchain network and obtaining a block height of a first blockchain locally stored in a first node device; A step of determining M blocks, which is the difference between the block height of the reference blockchain and the block height of the first blockchain, as blocks waiting for synchronization of the first node device; constructing a framework set based on the M blocks.
[0091] In an embodiment of the present application, when a first node device performs synchronization processing, it obtains a framework set and a synchronization task set, the framework set is for storing M blocks waiting for synchronization of the first node device, and selects a second node device from the candidate node set, the second node device being at least one candidate node device in the candidate node set, and causes the second node device to execute the synchronization task and return M blocks by transmitting the synchronization tasks in the synchronization task set to the second node device in parallel, and the first node device further fills the M blocks into each framework in the framework set. By such a synchronization processing method by framework filling, multiple blocks can be synchronized in a batch based on one synchronization task corresponding to one framework, which effectively improves the synchronization processing efficiency. In one synchronization processing process, synchronization tasks corresponding to multiple frameworks can be transmitted in parallel. In this way, more blocks can be synchronized in a batch based on multiple frameworks, which further improves the efficiency of the synchronization processing.
[0092] An embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform a method according to the above embodiment.
[0093] What has been disclosed above is merely a preferred embodiment of the present application, and of course does not limit the scope of the present application. Therefore, equivalent modifications based on the claims of the present application are still within the scope of protection of the present application. [Explanation of symbols]
[0094] 101 Lower Class 102 layers 103 layers 104 layers 105 Upper Tier 401 data units 701 Acquired Units 702 Processing Unit 801 Processor 802 Input Device 803 Output Device 804 Computer storage media
Claims
1. A synchronization processing method executed by a first node device which is any one of node devices in a blockchain network, the blockchain network including a synchronization candidate node set composed of a plurality of synchronization candidate node devices connected to the first node device, the method comprising: a step of identifying, within the first node device, a framework set consisting of frameworks, which are data structures including a plurality of blocks, and a synchronization task set consisting of synchronization tasks, which are tasks for synchronizing a block in the first node device with a block in the synchronization candidate node device, the framework set being for storing M blocks of the first node device to be synchronized, the framework set including P frameworks, the synchronization task set including P synchronization tasks, the P frameworks and the P synchronization tasks being in one-to-one correspondence, M and P being both positive integers, the M blocks to be synchronized in the framework set being allocated to the P frameworks, and each of the P synchronization tasks including instruction information, the instruction information including an index of a first block and an index of a last block of each of the frameworks, and indicating a plurality of blocks to be synchronized of the frameworks; A step of selecting at least one second node device from the synchronization candidate node set according to a predetermined criterion, the second node device being at least one synchronization candidate node device in the synchronization candidate node set; a step of causing each of the second node equipments to transmit a plurality of blocks to be synchronized, which are indicated by the instruction information, to the first node equipment at one time according to the instruction information included in the synchronization tasks respectively received by the second node equipments by simultaneously transmitting the synchronization tasks in the synchronization task set to the second node equipments, wherein the plurality of blocks to be synchronized, which are indicated by the instruction information, are the M number of blocks; storing the M blocks in each framework in the set of frameworks.
2. The target framework is any one of the P frameworks, The target framework includes N data units, the N data units are for storing N blocks of the first node device to be synchronized, the N blocks and the N data units have a one-to-one correspondence, N is a positive integer, and N≦M. The method of claim 1.
3. The N data units in the target framework are arranged in sequence, and the N blocks are consecutive blocks in the blockchain network; The i-th data unit of the N data units is for storing the i-th block of the N blocks, where i is a positive integer and 1≦i≦N. The method of claim 2.
4. a target second node device is any one of the second node devices, and the target second node device is for executing a target synchronization task corresponding to the target framework and transmitting N blocks to the first node device; The step of causing the target second node device to store the M blocks in each framework in the framework set includes: storing the N blocks in N data units of the target framework, respectively. The method of claim 2.
5. The method comprises: The method further includes the steps of reading N blocks stored in the N data units from the target framework, and sequentially adding the N blocks read to a first blockchain stored locally in the first node device. The method according to claim 4.
6. The step of selecting a second node device from the set of synchronization candidate nodes according to a predetermined criterion includes: Identifying the trustworthiness of each synchronization candidate node device in the synchronization candidate node set; and determining, as the second node device, at least one synchronization candidate node device in the synchronization candidate node set having a trustworthiness higher than a trustworthiness threshold. A method according to any one of claims 1 to 5.
7. The step of selecting a second node device from the set of synchronization candidate nodes according to a predetermined criterion includes: Identifying processing capabilities of synchronization candidate node devices in the synchronization candidate node set; and determining, as the second node device, at least one of the synchronization candidate node devices in the synchronization candidate node set, the processing performance of which is higher than a performance threshold. A method according to any one of claims 1 to 5.
8. The step of selecting a second node device from the set of synchronization candidate nodes according to a predetermined criterion includes: receiving a block storage status indicating a status of a block stored in a synchronization candidate node device in the synchronization candidate node set; and selecting at least one synchronization candidate node device from the synchronization candidate node set based on a block storage statement of the synchronization candidate node devices in the synchronization candidate node set, and determining the selected node device as the second node device. A method according to any one of claims 1 to 5.
9. The step of identifying a framework set includes: Identifying a block height of a reference blockchain in the blockchain network and identifying a block height of a first blockchain stored locally in the first node device; determining M blocks, which is the difference between the block height of the reference block chain and the block height of the first block chain, as blocks to be synchronized with the first node device; and constructing the framework set based on the M blocks. A method according to any one of claims 1 to 5.
10. A synchronization processing device, the synchronization processing device being provided in a first node device which is any one of node devices in a blockchain network, the blockchain network including a synchronization candidate node set consisting of a plurality of synchronization candidate node devices connected to the first node device, the synchronization processing device being: an identification unit configured to identify, within the first node device, a framework set consisting of frameworks, which are data structures including a plurality of blocks, and a synchronization task set consisting of synchronization tasks, which are tasks for synchronizing a block in the first node device with a block in the synchronization candidate node device, the framework set being for storing M blocks of the first node device to be synchronized, the framework set including P frameworks, the synchronization task set including P synchronization tasks, the P frameworks and the P synchronization tasks being in one-to-one correspondence, M and P being both positive integers, the M blocks to be synchronized in the framework set being allocated to the P frameworks, and each of the P synchronization tasks including indication information, the indication information including an index of a first block and an index of a last block of each of the frameworks, and indicating a plurality of blocks to be synchronized of the frameworks; A synchronization processing device comprising: a processing unit configured to select at least one second node equipment from the synchronization candidate node set according to a predetermined criterion, the second node equipment being at least one synchronization candidate node equipment in the synchronization candidate node set; and to cause each of the second node equipment to transmit a plurality of blocks to be synchronized indicated by the instruction information to the first node equipment at one time by simultaneously transmitting synchronization tasks in the synchronization task set to the second node equipment according to the instruction information included in the synchronization tasks received by each of the second node equipments, the plurality of blocks to be synchronized indicated by the instruction information being the M blocks, and to store the M blocks in each framework in the framework set.
11. A synchronization processing device, the synchronization processing device being a first node device in a blockchain network, the blockchain network including a synchronization candidate node set, the synchronization candidate node set including a plurality of synchronization candidate node devices connected to the first node device, A processor adapted to execute one or more instructions; A synchronization processing apparatus further comprising a computer storage medium having one or more instructions stored thereon, the one or more instructions being loaded by the processor to perform the synchronization processing method of any one of claims 1-9.
12. A computer program comprising instructions which, when executed on a computer, cause the computer to carry out a synchronization method according to any one of claims 1-9.
Citation Information
Patent Citations
Block chain state synchronization method and device
CN107332876A
Incomplete data synchronization method, system and device based on block chain data
CN109522362A
Architecture design and implementation of block chain hot upgrading
CN110430087A
Block synchronization method and device, medium and computing equipment
CN110569305A
Data processing method and apparatus for blockchain, and storage medium
US20200389291A1
