Blockchain State Data Repair Using Snapshot Read Sets
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current state data repair methods for blockchain systems require manual intervention and are inefficient, leading to incorrect verification results and stalled consensus processes when state data is lost or damaged, affecting overall processing efficiency.
Innovation Solution
A method for automatically repairing state data by obtaining and executing transaction tasks based on state data from a first node, comparing results with a snapshot from another node, and repairing state data using read set information to ensure consistent execution results.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If manual intervention is used to obtain state data from an approved node, then data integrity can be restored, but consensus processing efficiency deteriorates and the process stalls
Solution Approach 1:
The patent applies preliminary action by pre-obtaining and storing snapshot data from approved nodes before consensus processing is needed. When state data corruption occurs, the node can immediately retrieve pre-stored snapshot data without manual intervention, thus maintaining data integrity while avoiding consensus stalling. The snapshot data is prepared in advance and can be quickly applied to restore corrupted state data.
Solution Approach 2:
The patent implements self-service by enabling nodes to automatically detect state data corruption and self-repair by retrieving snapshot data from other nodes without requiring manual intervention. The system autonomously identifies when state data is corrupted, requests snapshot data from peer nodes, and restores the corrupted data, thereby maintaining both reliability and processing efficiency.
2Reliability
If state data is not repaired promptly, then data corruption persists and verification results become incorrect, but manual repair processes are time-consuming and inefficient
Solution Approach 1:
The patent applies preliminary action by pre-obtaining and storing snapshot data from approved nodes before consensus processing is needed. When state data corruption occurs, the node can immediately retrieve pre-stored snapshot data without manual intervention, thus maintaining data integrity while avoiding consensus stalling. The snapshot data is prepared in advance and can be quickly applied to restore corrupted state data.
Solution Approach 2:
The patent implements feedback by continuously monitoring the consistency of state data during consensus processing. When inconsistency is detected, the system automatically triggers a repair mechanism that retrieves snapshot data and restores corrupted state data. This closed-loop feedback ensures verification accuracy is maintained while minimizing repair time through automated detection and correction.
3Productivity
If automated repair mechanisms are implemented, then consensus processing efficiency improves, but system complexity increases
Solution Approach 1:
The patent applies copying by creating and distributing snapshot copies of state data across multiple nodes in the blockchain network. These snapshots serve as backup copies that can be quickly retrieved to repair corrupted state data. The copying mechanism is implemented through standard blockchain data distribution protocols, avoiding the need for complex specialized repair infrastructure.
Solution Approach 2:
The patent implements universality by designing the snapshot mechanism to serve multiple functions: it acts as a backup storage mechanism, a verification reference, and a repair source all in one. The same snapshot data structure and distribution protocol are used for normal consensus operations and for corruption recovery, eliminating the need for separate complex repair systems and reducing overall system complexity.
Data Source
AI summary
A state data repair method for a blockchain includes: obtaining, when receiving a proposal message broadcast by a second node in the blockchain system, state data maintained by the first node, the proposal message indicating existence of a transaction task, result information for the transaction task, and a block identifier; executing the transaction task in the proposal message, to obtain result information; obtaining, when the result information obtained after executing the transaction task is inconsistent with the result information indicated by the proposal message, read set information that corresponds to the block identifier in the proposal message from a snapshot of another node in the blockchain system; and repairing the state data based on the read set information, to obtain repaired state data, the repaired state data being configured for re-executing the transaction task to obtain an execution result.


