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.
CN109933592AActive Publication Date: 2019-06-25HANGZHOU FUZAMEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU FUZAMEI TECH CO LTD
Publication Date
2019-06-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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