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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap