Data storage method, data rollback method, equipment and storage medium

A data storage and data technology, applied in the field of blockchain, can solve the problems of data expansion and low reading efficiency, and achieve the effect of ensuring consistency, improving user experience, and reducing data storage capacity.

Active Publication Date: 2019-06-25
HANGZHOU FUZAMEI TECH CO LTD
View PDF10 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Using the state tree to store data will cause data expansion and low reading efficiency

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
  • Data storage method, data rollback method, equipment and storage medium
  • Data storage method, data rollback method, equipment and storage medium
  • Data storage method, data rollback method, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0025] figure 1 It is a flowchart of a data storage method provided by an embodiment of the present invention. Such as figure 1 As shown, in this embodiment, the present invention provides a data storage method, including:

[0026] S12: Execute the received packaged transactions in the first bl...

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 data storage method, a data rollback method and device and a storage medium, and the method comprises the steps: executing a received transaction packaged in a first block, storing state data information into a state database when all transactions in the first block are executed, and storing the block information of the first block into a local database in a key value pairform; storing the reverse operation information of the stored key value pairs in a local database; and storing a corresponding relationship between the block height of the first block and the state hash of the first block in a local database. According to the method, only the most important state data information is stored in the state database, the data storage amount of the state database is reduced, the reading efficiency is improved, and the user experience is improved.

Description

technical field [0001] The present application relates to the technical field of blockchain, and specifically relates to a data storage method, a data rollback method, a device, and a storage medium. Background technique [0002] In the existing blockchain technology, most of them use the state tree structure to store the data on the block. Common state trees include MPT tree, Merkle tree and so on. The main problem of the simple state tree structure is the storage capacity and performance of the data. The storage data of the state tree is 5-10 times larger than that of the ordinary kv database. Reading data is 40 times slower. Using the state tree to store data will cause data expansion and low reading efficiency. Contents of the invention [0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a data storage method, a data rollback method, a device, and a storage medium that reduce data storage capacity and improve rea...

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 Applications(China)
IPC IPC(8): G06F16/22G06F11/14
CPCG06F11/14G06F16/22
Inventor 王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD
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