Parallel block synchronization method for blockchain nodes

A block synchronization and blockchain technology, applied in the direction of instruments, finance, electrical components, etc., can solve the problems of blockchain block data synchronization, etc., to achieve the effect of ensuring continuity and integrity, and ensuring transaction processing speed

Active Publication Date: 2018-09-28
ZEU CRYPTO NETWORKS INC
View PDF7 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] The purpose of the present invention is to solve the block data synchronization problem of the block chain, realize timely synchronization of blocks and transaction information that are lost or need to be updated without affecting the normal consensus and block building process of the block chain, and ensure the continuity of block chain data and integrity

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Parallel block synchronization method for blockchain nodes
  • Parallel block synchronization method for blockchain nodes
  • Parallel block synchronization method for blockchain nodes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Many technical details are provided in the following exemplary descriptions to enable readers to better understand the ideas and achieved effects of the present invention. But all the changes and modifications not limited to the following details, based on the realization of the idea of ​​the present invention, are the technical solutions required by the claims of this application.

[0048] First of all, whether it is data storage or data transmission, the block height must exist as an identifier, and every link of the implementation plan includes the transmission of the block height.

[0049] Secondly, the network data is transmitted in Json format, and the Json object contains height information.

[0050] During the block synchronization process, whether it is a thread-safe queue to be synchronized or some intermediate data, it can be stored directly in memory, or using a third-party caching tool such as redis for storage.

[0051] According to the Byzantine algorith...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a blockchain block synchronization technology, and particularly relates to a parallel block synchronization method for blockchain nodes. The method is characterized by including the following aspects: (1) determining a height range of synchronization, and putting the height range into a memory queue; (2) enabling an asynchronous thread to regularly obtain the block heightto be synchronized from the memory queue, and sending block synchronization requests to other nodes; (3) enabling the nodes that receive the block synchronization requests to take out the local corresponding data, and sending the data to the nodes that request synchronization; (4) enabling the nodes to collect the block information returned by other nodes, and judging whether the block informationneeds to be stored by consensus; and (5) if the synchronization is successful, deleting a mark to be synchronized of the height, and if the synchronization is not successful, putting back the heightinto the memory queue. The invention provides the parallel block synchronization method for the blockchain nodes, the blocks and transaction information that have a node missing phenomenon or need tobe updated can be synchronized in time without affecting the normal consensus and a block building process of a blockchain, and the continuity and integrity of blockchain data can be ensured; and by using a parallel technology, the original transaction processing speed can be guaranteed, and thread resources of a computer can be fully utilized.

Description

technical field [0001] The invention relates to a blockchain block synchronization technology, in particular to a parallel block synchronization method for blockchain nodes. Background technique [0002] In the blockchain system, we mark the position of a block in the chain as the height of the block. In a normally running blockchain system, block data corresponding to the same height in different blockchain nodes should be completely consistent. [0003] The block building process of the blockchain system based on Byzantine consensus roughly includes the following four stages: [0004] (1) The node collects transaction information and broadcasts the hash value of the transaction to all other nodes; [0005] (2) All nodes will take the intersection of the collected transaction hash value sets, and the obtained public transaction set will be used as the transaction set for this block building. The selected block building nodes will build the block and broadcast the block in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08G06Q40/04
CPCG06Q40/04H04L67/1095
Inventor 蔡维德
Owner ZEU CRYPTO NETWORKS INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products