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

Block data storage method and device, electronic equipment and readable storage medium

A data storage and block technology, applied in the computer field, can solve problems such as high data storage pressure

Active Publication Date: 2020-12-11
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF8 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiment of the present invention is to provide a block data storage method, device, electronic equipment and readable storage medium to solve the problem of high data storage pressure of all nodes in the blockchain network

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 data storage method and device, electronic equipment and readable storage medium
  • Block data storage method and device, electronic equipment and readable storage medium
  • Block data storage method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0030] refer to figure 1 , figure 1 It is a flowchart of steps of a method for storing block data provided in an embodiment of the present invention. The method can be executed by a block chain node, and the block chain node includes electronic devices such as computers and servers. The method comprises the steps of:

[0031] Step 101. Obtain the current block data and calculate the block hash value of the current block data.

[0032] Since each block data includes block header data and block body data, the block header data usually includes the block version number, the block hash value of the previous current block data of the current block data, the The root node hash value of the Merkle tree of the current block data, the timestamp, the current difficulty target hash value of the current block d...

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 provides a current block data storage method and device, electronic equipment and a readable storage medium, and the method comprises the steps: obtaining the current block data, calculating the block hash value of the current block data, mapping the block hash value to a pre-constructed hash ring, and storing the pre-constructed hash ring in a database, determiningthe first position by mapping the public key value of the block chain node to the hash ring, and determining a distance between the first position and the second position, wherein the second positionis determined by mapping the public key value of the block chain node to the hash ring and is the position corresponding to the block chain node on the hash ring; if the distance between the first position and the second position is smaller than or equal to a preset threshold value, storing the current block data, wherein the preset threshold value is determined according to an expected proportion and the perimeter of the hash ring, and the expected proportion is the proportion of the block data stored on each node in the expected block chain network to all block data on the block chain; andthe data storage pressure of the blockchain node is reduced to a certain extent.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a block data storage method, device, electronic equipment and readable storage medium. Background technique [0002] The blockchain is a chained data structure that combines the current block data in a sequentially connected manner in chronological order, and is a cryptographically guaranteed non-tamperable and unforgeable distributed ledger. The blockchain storage mode is a decentralized storage based on the blockchain, and each node in the blockchain network contains blockchain data on the blockchain. Due to the increasing number of transactions on the blockchain over time, the current block data on the blockchain continues to increase, and it becomes increasingly difficult for a single node to carry blockchain data. [0003] In the virtual currency ecosystem, most of them are ordinary users. If the terminal devices of ordinary users also need to store blockchain dat...

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
IPC IPC(8): G06F16/22G06F16/23G06F16/27G06F21/60G06Q20/06G06Q20/38G06Q40/04
CPCG06F16/2255G06F16/2365G06F16/27G06F21/602G06Q20/065G06Q20/3829G06Q40/04Y02D10/00
Inventor 董哲
Owner BEIJING QIYI CENTURY SCI & 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