A block chain data filing method and device
A technology of data archiving and blockchain, which is applied in the field of blockchain, can solve problems such as dumping and transaction data storage bottlenecks, and achieve the effect of avoiding storage bottlenecks
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 It is a schematic diagram of a block chain data archiving process provided by the embodiment of the present invention, and the process includes:
[0038] S101: Receive a write request of transaction data.
[0039] S102: Detect whether the first block chain satisfies the preset archiving condition, if not, go to S103, if yes, return to S104.
[0040] The data archiving method of the blockchain provided by the embodiment of the present invention is applied to any blockchain node of the blockchain, and the blockchain node can be an electronic device such as a PC with computing and storage functions, a server, a server cluster, etc. .
[0041] In the embodiment of the present invention, the first blockchain may also be called the current blockchain, which refers to an unarchived blockchain, and there is only one current blockchain among the blockchain nodes. The archiving blockchain refers to the blockchain that has met the preset archiving conditions and is pro...
Embodiment 2
[0053] In order to facilitate the query of transaction data, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, the method further includes:
[0054] For the transaction data, an index relationship between the identification information of the transaction data, the identification information of the target block of the target block chain corresponding to the transaction data, and the identification information of the target block chain is added to the index table.
[0055] In the embodiment of the present invention, the identification information of the transaction data can be the information of the identification number (ID) of the transaction data, or the information of key fields in the transaction data, etc., and the identification information of the block can be The height information on the block chain, etc., the identification information of the block chain can be the digital fingerprint information of the block chain, the informa...
Embodiment 3
[0058] image 3 A schematic diagram of the structure of a block chain data archiving device provided by an embodiment of the present invention, which is applied to a block chain node, and the device includes:
[0059] Data operation module 31, for receiving the write request of transaction data;
[0060] The archiving management module 32 is used to detect whether the first block chain meets the preset archiving conditions;
[0061] The data operation module 31 is also used to write the transaction data into the first blockchain if the detection result of the archive management module 32 is no; if the detection result of the archive management module 32 is yes, a new second block chain is created. block chain, write the transaction data into the second block chain, wherein the genesis block of the second block chain points to the first block chain.
[0062] Preferably, the preset archiving conditions include at least one of the following: the block height of the block chain ...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com