Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A block chain data filing method and device

A technology of data archiving and blockchain, which is applied in the field of blockchain, can solve problems such as dumping and transaction data storage bottlenecks, and achieve the effect of avoiding storage bottlenecks

Active Publication Date: 2021-07-13
UNION MOBILE PAY
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a blockchain data archiving method and device, which are used to solve the problem of storage bottleneck and dumping of transaction data existing in the blockchain in the prior art

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 chain data filing method and device
  • A block chain data filing method and device
  • A block chain data filing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] figure 1 It is a schematic diagram of a block chain data archiving process provided by the embodiment of the present invention, and the process includes:

[0038] S101: Receive a write request of transaction data.

[0039] S102: Detect whether the first block chain satisfies the preset archiving condition, if not, go to S103, if yes, return to S104.

[0040] The data archiving method of the blockchain provided by the embodiment of the present invention is applied to any blockchain node of the blockchain, and the blockchain node can be an electronic device such as a PC with computing and storage functions, a server, a server cluster, etc. .

[0041] In the embodiment of the present invention, the first blockchain may also be called the current blockchain, which refers to an unarchived blockchain, and there is only one current blockchain among the blockchain nodes. The archiving blockchain refers to the blockchain that has met the preset archiving conditions and is pro...

Embodiment 2

[0053] In order to facilitate the query of transaction data, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, the method further includes:

[0054] For the transaction data, an index relationship between the identification information of the transaction data, the identification information of the target block of the target block chain corresponding to the transaction data, and the identification information of the target block chain is added to the index table.

[0055] In the embodiment of the present invention, the identification information of the transaction data can be the information of the identification number (ID) of the transaction data, or the information of key fields in the transaction data, etc., and the identification information of the block can be The height information on the block chain, etc., the identification information of the block chain can be the digital fingerprint information of the block chain, the informa...

Embodiment 3

[0058] image 3 A schematic diagram of the structure of a block chain data archiving device provided by an embodiment of the present invention, which is applied to a block chain node, and the device includes:

[0059] Data operation module 31, for receiving the write request of transaction data;

[0060] The archiving management module 32 is used to detect whether the first block chain meets the preset archiving conditions;

[0061] The data operation module 31 is also used to write the transaction data into the first blockchain if the detection result of the archive management module 32 is no; if the detection result of the archive management module 32 is yes, a new second block chain is created. block chain, write the transaction data into the second block chain, wherein the genesis block of the second block chain points to the first block chain.

[0062] Preferably, the preset archiving conditions include at least one of the following: the block height of the block chain ...

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 discloses a blockchain data archiving method and device. The method includes: a blockchain node receiving a writing request of transaction data; detecting whether the first blockchain satisfies a preset archiving condition; if not, Write the transaction data into the first block chain; if yes, create a second block chain and write the transaction data into the second block chain, wherein the creation of the second block chain The world block points to said first blockchain. Because in the embodiment of the present invention, when the blockchain node detects that the first blockchain meets the preset archiving conditions, it archives the first blockchain and creates a second blockchain for transaction data Write, because the address of the newly created second blockchain is not limited by the address of the first blockchain, the blockchain node can establish the second blockchain in any storage device in the blockchain node for subsequent The writing of the generated transaction data avoids the problem of storage bottleneck and transfer of transaction data.

Description

technical field [0001] The present invention relates to the field of block chain technology, in particular to a block chain data archiving method and device. Background technique [0002] The blockchain system is a data network system that uses node consensus algorithms to generate and update transaction data, uses cryptography to ensure the security of data transmission and access, and generates non-tamperable and non-forgeable distributed ledgers. In the blockchain system, the transaction ledger is stored in a block chain structure, and each blockchain node will store the complete transaction data of the blockchain system. As the running time of the blockchain system increases, the block height of the blockchain and the amount of transaction data stored on the blockchain also increase linearly, which will make the transactions used to store the blockchain in the blockchain nodes Data storage devices face storage bottlenecks. [0003] Because the address of the blockchain...

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): G06F21/64G06Q40/04
CPCG06F21/64G06Q40/04
Inventor 祝晓潭徐加明殷舒刘胜余兴华陈正
Owner UNION MOBILE PAY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products