Unlock instant, AI-driven research and patent intelligence for your innovation.

A block synchronization method, device and storage medium

A technology of blocks and devices, applied in the field of blockchain, can solve the problems of prolonged block synchronization, slower node running speed, and memory usage, etc., to achieve the effect of improving efficiency

Active Publication Date: 2020-08-14
苏州交链科技有限公司 +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing blockchain technology, the method of block synchronization is to request a range of blocks from multiple blockchain nodes, and execute them in order according to the block height, and wait until all the requested blocks are executed sequentially. For the request of the next interval block, in the existing technology, due to the different network speeds of multiple block nodes, the block of the following block height has been downloaded successfully, while the block height of the previous height has not been downloaded yet At this time, even if the following block has been successfully downloaded, it cannot be executed successfully. It can only be stored in the memory first, and it can only be executed after the previous block is downloaded and executed. Therefore, on the one hand, a large amount of memory is occupied , causing the node to run slower. On the other hand, the block synchronization time is greatly extended, and the efficiency is very low

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
  • A block synchronization method, device and storage medium
  • A block synchronization method, device and storage medium
  • A block synchronization method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0022] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0023] figure 1 It is a flowchart of a block synchronization method provided by an embodiment of the present invention.

[0024] Such as figure 1 As shown, in this embodiment, the present invention provides a block synchronization method, including:

[0025] S11. Download the blocks of the firs...

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 blockchain synchronization method and device, and a storage medium. The method comprises the steps that a plurality of block chain nodes download blocks in a first block height interval, the downloaded blocks are stored in a local database, and after all the blocks in the first block height interval are downloaded, all the blocks in a second block height interval behind the first block height interval continue to be downloaded until the latest block height is reached; the blocks in the local database are sequentially read and executed according to the sequence of the block heights from small to large, wherein the two steps are executed independently in parallel. According to the block synchronization method and device and the storage medium, the block downloading task and the block execution task are divided into the two independent tasks to be executed, and after the downloading task is completed, the next block interval is continuously requested so that the block synchronization efficiency can be greatly improved through the block synchronization method and device.

Description

technical field [0001] The present application relates to the technical field of block chain, and specifically relates to a block synchronization method, device and storage medium. Background technique [0002] In the existing blockchain technology, the method of block synchronization is to request a range of blocks from multiple blockchain nodes, and execute them in order according to the block height, and wait for all the requested blocks to be executed sequentially. For the request of the next interval block, in the existing technology, due to the different network speeds of multiple block nodes, the block with the height of the next block has been downloaded successfully, while the block height of the previous height has not been downloaded yet At this time, even if the subsequent block has been successfully downloaded, it cannot be successfully executed. It can only be stored in the memory first, and it can only be executed after the previous block is downloaded and exe...

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): H04L29/08G06F16/27
CPCG06F16/27H04L67/06H04L67/1078H04L67/1095
Inventor 何玉斌王志文吴思进
Owner 苏州交链科技有限公司