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

Block restoration method and device, and storage medium

A block and blockchain technology, applied in the blockchain field, can solve problems such as lack of transaction feedback

Pending Publication Date: 2020-09-01
HANGZHOU FUZAMEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above mechanism makes there are a large number of transaction feedbacks caused by lack of transactions between blockchain 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 restoration method and device, and storage medium
  • Block restoration method and device, and storage medium
  • Block restoration method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] 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.

[0033] 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.

[0034] In the existing technology (such as the Ethereum blockchain), assuming that there are four nodes A, B, C, and D in the blockchain, when A generates block-100-A, if block-100-B is received again, A will cache block-100-B for subsequent rollback.

[0035] figure 1 It is a flowchart of a blo...

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 block restoration method and device, and a storage medium. The method comprises the steps of receiving a first data set of a first block with a first block height; when the first block height is not greater than the block height of the current node, executing the following operations on each first transaction hash in the transaction hash list: judging whether a first transaction corresponding to the first transaction hash exists in a local transaction pool or not, and if so, pulling the first transaction from the local transaction pool; if not, judging whether a firsttransaction corresponding to the first transaction hash exists in a local state database or not; if yes, pulling the first transaction from the local state database; if not, requesting a first transaction corresponding to the first transaction hash from a node generating the first block; and restoring the first block from the plurality of first transactions requested by the node generating the first block according to the transaction hash list, the plurality of first transactions pulled in the local transaction pool and the plurality of first transactions pulled in the local state database. According to the invention, transaction backhaul caused by lack of transactions is reduced.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a method, device and storage medium for restoring a block. Background technique [0002] In the block verification mechanism previously proposed by the applicant, it is assumed that A generates block-100-A according to tx1, tx2, and tx3, and B generates block-100-B according to tx1, tx2, and tx4; at this time, if B receives At block-100-A, B cannot query tx1 and tx2 from the local transaction pool; B needs to request tx1 and tx2 from A to restore block-100-A; [0003] The above mechanism makes there are a large number of transaction feedbacks caused by lack of transactions among blockchain nodes. Contents of the invention [0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a block restoration method, device and storage medium that reduce transaction feedback caused by lack of transactions. [0005] In the...

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
IPC IPC(8): G06Q20/40G06Q20/38G06F16/27G06F16/22
CPCG06Q20/401G06F16/27G06F16/2255G06Q20/3825G06Q20/382
Inventor 何玉斌王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD