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

Block chain node data storage method and system, terminal and block chain system

A node data and storage system technology, applied in the Internet field, can solve problems such as waste of storage space, repeated storage of unresolved transaction data, etc., and achieve the effect of avoiding repeated storage and reducing waste

Active Publication Date: 2021-10-26
上海树图区块链研究院
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The use of dense blocks in BIP152 can improve the bandwidth usage efficiency of nodes, but it still does not solve the problem of local duplicate storage of transaction data, especially the fork of the blockchain may make the full node of the storage block pack a large number of duplicate areas blocks, and even fork blocks are used in some consensus systems, resulting in a lot of transaction data being stored multiple times, resulting in a waste of storage space

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 node data storage method and system, terminal and block chain system
  • Block chain node data storage method and system, terminal and block chain system
  • Block chain node data storage method and system, terminal and block chain system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention 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 the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0032] The blockchain is essentially a peer-to-peer distributed ledger database, and the transaction records (transaction data) on the blockchain network will be stored in blocks. Each block generally includes a block header (header) and a block body (body), the block header encapsulates the current version number (Version), the previous block address (Parent Hash), timestamp (Timestamp), random...

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 present invention relates to a blockchain node data storage method, comprising: receiving first transaction data, obtaining transaction information of the first transaction data to construct a first transaction information set; obtaining a dense block sent by a sending node, and obtaining The transaction information extracted from the block is constructed as the second transaction information set; the supplementary information set is the relative complement of the first transaction information set to the second transaction information set, and the transaction data corresponding to the supplementary information set is the supplementary transaction data , obtain the supplementary transaction data from the sending node; use the transaction data corresponding to the second transaction information set as the second transaction data, generate the current block with the compact block and the second transaction data, and perform Consensus verification; if the current block passes the consensus verification, the compact block and the second transaction data are stored separately. The present invention can effectively reduce the waste of storage space of all nodes by separately storing dense blocks and deduplicated transaction data.

Description

technical field [0001] The invention belongs to the technical field of the Internet, and in particular relates to a data storage method and system of a block chain full node. Background technique [0002] In the blockchain system, due to various reasons such as network delays, it is impossible to completely avoid the occurrence of forks in the blockchain system, and the blocks on the forked chain are very likely to package a large number of repeated transactions. When blocks are persisted to disk successively, storage space is wasted. figure 1 is a schematic diagram of block propagation in the prior art, such as figure 1 As shown, the block propagation process of the prior art is: receiving node B (Node B) receives transaction data (txn), txn can come from sending node A (NodeA) or other node C (Node C); when sending node A (Node A) After receiving the block (block), it forwards the block headers (blockheaders) to Node B; Node B checks the block headers, and if it thinks t...

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): G06Q20/38H04L29/08
CPCG06Q20/3829H04L67/1097
Inventor 尚书
Owner 上海树图区块链研究院