Block chain peer-to-peer network data synchronization method based on height

A peer-to-peer network and data synchronization technology, applied in the field of blockchain to achieve the effect of solving data synchronization and data consistency

Pending Publication Date: 2022-05-24
北京天成通链科技有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a blockchain peer-to-peer network data synchronization method based on height. On the premise that the consensus of the blockchain is consistent, the height can be used to judge whether the unknown data set is consistent, which can effectively Solve the problems of data synchronization and data consistency between blockchain network nodes

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
  • Block chain peer-to-peer network data synchronization method based on height

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In this embodiment, as figure 1 As shown, a block chain peer-to-peer network data synchronization method based on height mainly includes the following steps:

[0036] Step 1: Node height calculation, the calculation needs to be officially recorded in the ledger data set height of the ledger;

[0037] Step 2: Actively broadcast and receive, the ledger recorder broadcasts the height of the ledger data set to the nearby ledger recorder through message broadcasting, and the adjacent ledger recorder receives the broadcast message and stores it locally;

[0038] Step 3: Regular polling to make up the difference, each ledger recorder regularly sends a node height query request to its surrounding accounting nodes, and compares the height of the returned node with the height of the local node according to the request. If the height of the returned node is greater than the height of the local node, then Start the compensation mechanism for data synchronization.

[0039] In this...

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 discloses a height-based block chain peer-to-peer network data synchronization method, which comprises the following steps of: calculating an account book data set height which needs to be formally recorded in an account book, wherein an account book recorder broadcasts the account book data set height and an account book data set to an adjacent account book recorder through message broadcasting; the close account book recorder receives the broadcasted message and stores the broadcasted message locally; and each account book recorder sends a node height query request to the surrounding accounting nodes at regular time, compares the height of a request return node with the height of a local node, and starts a difference compensation mechanism to perform data synchronization if the height of the request return node is greater than the height of the local node. According to the invention, on the premise that the block chain network system allows free access of any node, whether the node data is in the latest calculation baseline in the distributed peer-to-peer network system is rapidly and accurately judged; and meanwhile, a synchronization standard and a synchronization range are defined for data replication among different nodes in the peer-to-peer network.

Description

technical field [0001] The invention relates to the technical field of blockchain, in particular to a method for synchronizing data in a blockchain peer-to-peer network based on height, which is suitable for blockchain peer-to-peer network and consensus-consistent blockchain data synchronization. Background technique [0002] The existence of data synchronization is because when the computer stores data, the read and write efficiency of different storage media is quite different, so the cache design is adopted by most computer systems. For a computer with a cache mechanism, when writing data, the system will not immediately write the data to a storage medium with slow read and write speed (such as external memory), but save it in a storage medium with fast read and write speed (such as memory ); when reading data, the system will check whether there is a backup of the data in the storage medium with fast reading and writing speed, and if so, it can directly read the backup. ...

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): H04L67/1095H04L67/1097G06F16/27
CPCH04L67/1095H04L67/1097G06F16/275
Inventor 张秦龙吕雯
Owner 北京天成通链科技有限公司
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