A blockchain data storage method and a computer storage medium

A data storage and blockchain technology, applied in the computer field, can solve the problems of low blockchain data storage efficiency and low scalability of storage servers, and achieve the effect of good scalability and fast data query speed.

Active Publication Date: 2019-05-07
BEIJING XINTANG SICHUANG EDUCATIONAL TECH CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, one of the technical problems solved by the embodiments of the present invention is to provide a blockchain data storage method and a computer storage medium to overcome the low efficiency of blockchain data storage in the prior art, and the storage server The problem of low scalability

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
  • A blockchain data storage method and a computer storage medium
  • A blockchain data storage method and a computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 A flow chart of a blockchain data storage method according to Embodiment 1 of the present invention is shown. Such as figure 1 As shown, the block chain data storage method of the embodiment of the present invention includes the following steps:

[0024] Step S101: Receive a storage request for blockchain data, and obtain server-wide information from the key-value database according to the storage request.

[0025] In this embodiment, due to the limited storage space of a single storage server, in order to improve the overall storage space of blockchain nodes, a blockchain node may include multiple storage servers for storing blockchain data, and one for A management server that performs overall management of data storage, reading, operation and maintenance of multiple storage servers. Wherein, the hardware and network connection form of the storage server and the management server are not limited, for example, they may be multiple computers in a local area ...

Embodiment 2

[0038] figure 2 A flow chart of the blockchain data storage method according to Embodiment 2 of the present invention is shown. Such as figure 2 As shown, the block chain data storage method of the embodiment of the present invention includes the following steps:

[0039] Step S201, according to the received registration request sent by the storage server, establish a connection with the storage server, and update the data stored in the key-value database.

[0040]In this embodiment, since the blockchain node is running, it may deploy a new storage server to establish a connection with the management server to expand the storage space, and the deployed storage server may also need to be connected with the management server due to restart or network failure. The server re-establishes the connection. Therefore, in order to ensure the successful storage of blockchain data, each time the storage server connects with the management server, it means that the storage server has t...

Embodiment 3

[0119] The embodiment of the present invention also provides a computer storage medium, and the computer storage medium stores:

[0120] An instruction for receiving a storage request for blockchain data and obtaining server-wide information from a key-value database according to the storage request;

[0121] An instruction for judging whether there is a storage server that can be used to store the blockchain data according to the server range information;

[0122] If yes, selecting a target server from the storage servers according to the set screening rules, and determining the identification information of the target server;

[0123] An instruction for obtaining storage address information corresponding to the target server from the key-value database according to the identification information of the target server, so as to store the blockchain data in the target server.

[0124] Optionally, the method further includes: an instruction for receiving a registration request ...

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 blockchain data storage method and device, and the method comprises the steps: firstly receiving a storage request of blockchain data, and obtaining server range information from a key value database according to the storage request; Judging whether a storage server used for storing block chain data exists or not according to the server range information,if yes, selecting a target server from the storage server according to a set screening rule, and determining identification information of the target server; Therefore, according to the identification information of the target server, the storage address information corresponding to the target server is obtained from the key value database so as to store the block chain data into the target server. Due to the fact that the key value database is adopted to store the identification information and the storage address information of the storage server, the expansibility of the storage system isgood, and the data query speed is high.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a blockchain data storage method and a computer storage medium. Background technique [0002] Blockchain is a new application model that utilizes computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchains are divided into three categories: public blockchains, alliance blockchains (also known as joint blockchains, industry blockchains) and private blockchains. Among them, the public blockchain is aimed at everyone; the alliance blockchain is aimed at a specific group and limited third parties; and the private blockchain is aimed at individuals. [0003] Taking the blockchain technology adopted by Bitcoin as an example, since there is no central controller in the blockchain network, each blockchain node needs to save all data. With the rapid development of Bitcoin t...

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/22
Inventor 高海刚牛冬王海平
Owner BEIJING XINTANG SICHUANG EDUCATIONAL 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