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

Block chain node data separate storage method and device

A node data, separate storage technology, applied in the direction of database distribution/replication, database indexing, electronic digital data processing, etc., can solve the problems of increased data storage space and high storage cost, so as to improve the speed and reduce the cost of storage space , the effect of reducing network bandwidth consumption

Pending Publication Date: 2020-10-30
HANGZHOU RIVTOWER TECH CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the blockchain is a chain structure, each blockchain node needs to store all historical data, and the data has been accumulatively growing, so the data storage space will not increase much, and the storage cost is very high

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 separate storage method and device
  • Block chain node data separate storage method and device
  • Block chain node data separate storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] In order to solve the problem of shortage of storage space caused by the continuous growth of blockchain system data, the present invention provides a method that defines blockchain data as hot, warm, and hot types, and compresses and stores them after separating cold and hot, so as to improve the utilization rate of system space. method. The method includes: when the block chain system reaches the preset cold data separation rule, such as reaching the preset height value, the block data of the block height within the set range can be compressed and stored, and index data can be generated; When cold data needs to be accessed, the cold data is obtained from the local cold database or the cold database of other nodes, decompressed and queried, and the data that meets the query conditions is written into the warm database to improve query efficiency. Newly added nodes can perform data synchronization by obtaining compressed cold data of different ranges from multiple nodes...

Embodiment 2

[0103] Figure 7 A schematic structural diagram of a block chain node data separation storage device 700 provided for an embodiment of this specification. Please refer to Figure 7 , in one embodiment, the blockchain node data separation storage device 700 includes:

[0104] A data determination module 701, configured to determine node data satisfying preset data separation and storage rules;

[0105] The data cold storage module 702 is used to perform a data cold storage operation on the blockchain node data that meets the preset data separation and storage rules, so that the data is stored in a cold database, and its working process is as follows:

[0106] Construct the transaction hash record index of the data, that is, record the transaction hash in all blocks within the cold storage range as an index table, and obtain a transaction record hash index table;

[0107] Compressing the data file to form a cold storage file, generating a hash of the cold storage file, that i...

Embodiment 3

[0128] Figure 8 It is a schematic structural diagram of an electronic device according to an embodiment of this specification. Please refer to Figure 8 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.

[0129] The processor, the network interface and the memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard archi...

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 embodiment of the invention discloses a block chain node data separate storage method and device. According to the scheme, a cold database and a warm database of blockchain nodes are created in ablockchain network, the cold database is used for storing low-frequency access data, the warm database is used for storing data recovered from the cold database, and the method comprises the steps: determining node data meeting a preset data separation storage rule; storing the node data in the cold database to perform data refrigeration operation; and when a use demand exists, obtaining the datameeting the use condition from the cold database to perform data unfreezing operation, so as to enable the data to be recovered to the warm database, wherein the warm data recovered to the warm database does not need to be decompressed. Therefore, by separately storing the blockchain node data, the storage space cost of a single node of the blockchain is reduced; and meanwhile, the speed of synchronizing the blockchain by the newly added node of the blockchain is increased, and the network bandwidth consumption is reduced.

Description

technical field [0001] This description relates to the technical field of computer software, and in particular to a method, device, electronic device and storage medium for separate storage of blockchain node data. Background technique [0002] Blockchain is a shared database. The data or information stored in it has the characteristics of unforgeable, traceable, traceable, open and transparent, and collective maintenance. Since the blockchain is a chain structure, each blockchain node needs to store all historical data, and the data has been accumulatively growing, so the data storage space will not increase much, and the storage cost is very high. Regularly separate and store data according to specific rules, which can not only provide more data storage in a stable data storage space, but also quickly restore the data required by the application; at the same time, when new nodes are added to the blockchain, it can also quickly achieve complete Initial construction of data...

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/176G06F16/22G06F16/27
CPCG06F16/176G06F16/2255G06F16/27
Inventor 王晓亮陈林燏
Owner HANGZHOU RIVTOWER TECH CO LTD
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