Method and terminal for synchronizing data between nodes in block chain

A data synchronization and blockchain technology, applied in the blockchain field, can solve the problems of low blockchain operation efficiency, high computing power cost, and long synchronization time, so as to improve the efficiency of data synchronization and ensure data security.

Active Publication Date: 2019-08-06
福建方维信息科技有限公司
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With more and more blockchain nodes, the operating efficiency of the blockchain is getting lower and lower, and the computing cost charged to users is getting higher and higher. This problem has seriously affected the application and development of blockchain technology.
Because on the blockchain platform, in order to ensure the security of data storage, after the data of any node is updated, it must be stored in other nodes synchronously. However, as more and more data is stored, synchronization between nodes is required. The more data, the longer it takes to synchronize each time, and, as the number of nodes increases, the time required to synchronize the latest data to all nodes increases, which leads to The efficiency of blockchain operation is getting lower and lower

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
  • Method and terminal for synchronizing data between nodes in block chain
  • Method and terminal for synchronizing data between nodes in block chain
  • Method and terminal for synchronizing data between nodes in block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] Please refer to figure 1 , a method for synchronizing data between nodes in a blockchain, comprising steps:

[0064] S1. After a node in the blockchain network updates the blockchain data, it broadcasts a blockchain update message to the blockchain network;

[0065] Wherein, the block chain update message includes the updated block number;

[0066] S2. Receive the request synchronization message sent by the node that receives the block chain update message in the block chain network according to the block chain update message, and the request synchronization message includes broadband capability information corresponding to the node that sent the request synchronization message ;

[0067] Specifically, the request synchronization message sent by the node receiving the blockchain update message in the blockchain network according to the blockchain update message includes:

[0068] Receiving the request synchronization message sent by the node receiving the block chain...

Embodiment 2

[0078] The difference between this embodiment and Embodiment 1 is that after determining the blockchain data to be updated, the blockchain server sends the blockchain data to be updated to nodes with lower computing power costs for updating. as follows:

[0079] S0, each node sends its own computing power to the blockchain server, and the blockchain server selects the node server with the strongest computing power from the nearest nodes according to the computing power and location of each node to update the blockchain data to be updated , and send the blockchain data to be updated to the selected node;

[0080] S1. The selected node receives the block chain data to be updated sent by the block chain server and updates the block chain, and then performs the steps in Embodiment 1;

[0081] The cost of data synchronization between nodes in the blockchain network is divided into two parts: the time cost of information transmission and the computing cost of the node. Among them, ...

Embodiment 3

[0083] Please refer to image 3 , a terminal 1 for synchronizing data between nodes in a blockchain, comprising a memory 2, a processor 3, and a computer program stored in the memory 2 and operable on the processor 3, the processor 3 executing the A computer program realizes the steps in the first embodiment.

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 provides a method and a terminal for synchronizing data between nodes in a block chain. The method comprises the following steps: broadcasting a block chain update message to a block chain network; receiving a request synchronization message sent by the node receiving the block chain update message in the block chain network according to the block chain update message, wherein the request synchronization message comprises broadband capability information corresponding to the node sending the request synchronization message; and synchronizing data matched with the broadband capability information to a corresponding node. A data synchronization mechanism based on the real-time network transmission capability of the block chain node is realized; the data synchronization efficiency between the nodes in the block chain network is improved, meanwhile, due to the unpredictability and unfixity of the bandwidth capacity of each node in the block chain network, the node for data synchronization and the unpredictability of the data updated by each node are decided, and the data safety and the fairness between the nodes are also ensured.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and a terminal for synchronizing data between nodes in a block chain. Background technique [0002] With more and more blockchain nodes, the operating efficiency of the blockchain is getting lower and lower, and the computing cost charged to users is getting higher and higher. This problem has seriously affected the application and development of blockchain technology. Because on the blockchain platform, in order to ensure the security of data storage, after the data of any node is updated, it must be stored in other nodes synchronously. However, as more and more data is stored, synchronization between nodes is required. The more data, the longer it takes to synchronize each time, and, as the number of nodes increases, the time required to synchronize the latest data to all nodes increases, which leads to The efficiency of blockchain operation is getting lower and ...

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/08
CPCH04L67/1095H04L67/1074
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