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

Block chain data reduction method, device and storage medium

A technology of blockchain and data, applied in the field of blockchain

Active Publication Date: 2021-08-24
WEBANK (CHINA)
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to provide a block chain data reduction method, device and computer-readable storage medium, aiming to solve how to realize the flexible reduction of block chain data under the premise of ensuring the reliability of block chain node data technical issues

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 data reduction method, device and storage medium
  • Block chain data reduction method, device and storage medium
  • Block chain data reduction method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0109] Example 1: Static data shrinkage when the node starts

[0110] Since the block chain node in the present invention can adjust the node parameter configuration information, and then can change the node type, node snapshot cycle or node hot data block interval, in order to deal with the adjustment of node parameter configuration information, therefore, it is necessary to Static shrinking of data is performed.

[0111] refer to figure 1 , figure 1 It is a schematic flowchart of the first embodiment of the blockchain data shrinking method of the present invention. In this embodiment, the implementation process of node data static shrinkage includes the following steps:

[0112] Step S110, when the blockchain node starts, read the locally saved node type and historical data storage type;

[0113] Step S120, based on the node type and the historical data storage type, determine whether the blockchain node meets the data shrinkage condition;

[0114] In this embodiment, t...

Embodiment 2

[0135] Embodiment 2: Establishing a hotspot data cache pool

[0136] The present invention divides the block chain nodes into node types. The archive nodes store all the data of the block chain and store them permanently without any shrinkage, while the snapshot nodes and hot nodes only synchronously save the latest block information and data in the block chain network. Latest state without saving historical state data. Therefore, when snapshot nodes and hot nodes need any non-current and latest state data, they need to request historical data from archive nodes. As a result, most of the query requests received by snapshot nodes and hot nodes need to access archive nodes, which increases the network load. And pressure, in the application scenario with many queries, the archive node has become a new system bottleneck, and the system delay is greatly increased.

[0137] refer to figure 2 , figure 2 It is a schematic flowchart of the second embodiment of the blockchain data ...

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 block chain data shrinking method, comprising the following steps: when the block chain node starts, read the locally saved node type and historical data storage type; based on the node type and the historical data Storage type, to determine whether the block chain node meets the data shrinkage conditions; if the data shrinkage conditions are met, the data shrinkage is performed on the blocks that have not undergone data shrinkage in the current block chain node; among them, if the local If the block chain node is a snapshot node type or a hot node type, and the node type has not changed or has been degraded, it is determined that the block chain node meets the data shrinkage conditions. The invention also discloses a blockchain data shrinking device and a computer-readable storage medium. On the premise of ensuring the safety and reliability of the block chain operation, the present invention realizes the flexible shrinkage of the block chain data.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a block chain data reduction method, device and computer-readable storage medium. Background technique [0002] With the growth of blockchain transactions and the continuous addition of new blocks, the rapid expansion of the blockchain state has been brought about. This puts storage pressure on blockchain nodes and increases storage costs. Therefore, it is necessary to shrink the blockchain data, so that the blockchain nodes can reduce storage costs and storage pressure on the premise of ensuring reliability, and achieve the purpose of continuous operation without interruption. [0003] Existing technologies usually use the method of actively discarding historical data to shrink, without retaining any historical data or any association with historical data. By taking a snapshot of the current block, all states are exported and reorganized into the founding block of ...

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): G06F16/901G06F16/174
Inventor 郭世清张开翔
Owner WEBANK (CHINA)
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