Blockchain data recovery method and device, equipment and medium
A recovery method and blockchain technology, applied in the field of blockchain data recovery, can solve the problems of inability to quickly recover data, high recovery cost, and slow recovery speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] The present invention provides a blockchain data recovery method, which can be applied to different computer equipment including but not limited to various personal computers, notebook computers, smart phones and tablet computers.
[0056] Such as figure 1 As shown, the present invention provides a blockchain data recovery method, which includes the following steps:
[0057] S10: Obtain the height to be rolled back, query the database based on the height to be rolled back, and obtain the hash values of all root nodes to be rolled back corresponding to the height to be rolled back.
[0058] Among them, the height to be rolled back refers to the height of the block determined to be rolled back after an error occurs in the data of the blockchain. A database refers to a database that stores data storage keys and data storage values. The data storage key refers to the key composed of the key of the ledger data and the hash value of the ledger data; the data storage value refers t...
Embodiment 2
[0103] Such as Image 6 As shown, the difference between this embodiment and Embodiment 1 is that a blockchain data recovery device includes:
[0104] The height to be rolled back processing module 10 is used to obtain the height to be rolled back, query the database based on the height to be rolled back, and obtain the hash values of all root nodes to be rolled back corresponding to the height to be rolled back.
[0105] The root node data obtaining module 20 to be rolled back is configured to obtain the root node data to be rolled back corresponding to the hash value of each root node to be rolled back from the database based on the hash value of the root node to be rolled back.
[0106] The to-be-rolled-back MPT tree processing module 30 is used to generate the to-be-rolled-back MPT tree based on the data of each root node to-be-rolled-back, update the to-be-rolled-back MPT tree to the memory, and replace the ledger MPT tree in the memory with the to-be-returned MPT tree Roll th...
Embodiment 3
[0131] This embodiment provides a computer device, which may be a server, and its internal structure diagram may be as Figure 7 Shown. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a computer-readable storage medium and internal memory. The computer-readable storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the computer-readable storage medium. The database of the computer equipment is used to store the data involved in the blockchain data recovery method. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by t...
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