Blockchain data synchronization method and computer-readable storage medium

A technology of data synchronization and blockchain, which is applied in the field of blockchain, can solve the problems of data synchronization and data loss, achieve the effect of reducing the size of data packets and improving asynchronous parallel capabilities

Active Publication Date: 2022-05-13
PEKING UNIV SHENZHEN GRADUATE SCHOOL +4
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In various fields, such as Internet of Vehicles, satellite networks, etc., the blockchain network is mostly a wireless dynamic network, that is, the connection between nodes is temporary and dynamically changing, and data synchronization may cause data loss

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
  • Blockchain data synchronization method and computer-readable storage medium
  • Blockchain data synchronization method and computer-readable storage medium
  • Blockchain data synchronization method and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] Please refer to figure 2 , figure 2 An interactive schematic diagram of a blockchain data synchronization method provided in the embodiment of this application, as shown in figure 2 As shown, the first node in this embodiment can be the above figure 1 Any node in the block chain network system shown, for example, can be node 101, and the block chain network in this embodiment can be the above-mentioned figure 1 The block chain network 107 in the shown block chain network system, the second node in this embodiment can be, the method provided in this embodiment includes the following steps:

[0060] S201. After the first node determines the data to be synchronized, based on the target filter, a first state vector is generated according to the identification information of the target blockchain data on the first node.

[0061] Wherein, the data to be synchronized is data that has not been synchronized and is generated by the first node. It can be understood that the...

Embodiment 2

[0188] The embodiment of this application provides a method for synchronizing blockchain data. The method of this implementation is executed by the first node. The method of this embodiment includes:

[0189] After the data to be synchronized on the first node, based on the target filter, the first node generates the first state vector according to the identification information of the target blockchain data on the first node, and the target blockchain data is the data to be synchronized or the first For all blockchain data of a node, the data length of the first state vector is less than the data length of the identification information of the target blockchain data;

[0190] The first node sends a first synchronization message to the blockchain network, and the first synchronization message carries the first routable identification prefix information and the first state vector, so that the blockchain network sends the first synchronization message to the second node; The fir...

Embodiment 3

[0205] The embodiment of this application provides a method for synchronizing blockchain data. The method in this implementation is executed by the second node. The method in this embodiment includes:

[0206] The second node receives the first synchronization message sent by the blockchain network. The first synchronization message carries the first routable identification prefix information and the first state vector. The first state vector is based on the target filter of the first node, according to the first Generated by the identification information of the target blockchain data on a node, the target blockchain data is the data to be synchronized or all the blockchain data of the first node, and the data length of the first state vector is less than the identification of the target blockchain data The data length of the information, the first routable identification prefix is ​​used to indicate the second node, and the second node is the node that needs to send the first...

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

A block chain data synchronization method and a computer-readable storage medium, when the data to be synchronized on the first node, the first node generates a The first state vector, the target block chain data is the data to be synchronized or all the block chain data of the first node, the first node sends the first synchronization message to the block chain network, and the first synchronization message carries the first possible Routing identification prefix information and the first state vector, the blockchain network determines the second node according to the first routable identification prefix information, and after the second node receives the first synchronization message sent by the blockchain network, according to the first A state vector and a second state vector, determine the missing data of the second node, and obtain the missing data of the second node. Decoupling the connectivity between the two sides of the synchronization, improving the asynchronous parallel capability; reducing bandwidth consumption; improving the scalability and adaptability of data synchronization.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a method for synchronizing blockchain data and a computer-readable storage medium. Background technique [0002] In the blockchain network, with the development of blockchain technology, the application of data sharing and collaborative utilization is increasing. Multi-party nodes need to synchronize data, for example, data such as data ledgers need to be synchronized. [0003] Usually in a blockchain network, when there is data to be synchronized on a node, the node sends the data to be synchronized to other nodes in the blockchain network to complete the data synchronization. [0004] In various fields, such as Internet of Vehicles, satellite networks, etc., the blockchain network is mostly a wireless dynamic network, that is, the connection between nodes is temporary and dynamically changing, and data synchronization may cause data loss. Contents of the inv...

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 Patents(China)
IPC IPC(8): G06F16/27
CPCG06F16/275
Inventor 雷凯景晓军余锡权徐婷张良杰张亚朋郭晨李琦山进孝陈佩淑
Owner PEKING UNIV SHENZHEN GRADUATE SCHOOL
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