Blockchain State Data Repair Using Snapshot Read Sets

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvedata integrityVSAvoidconsensus processing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

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.

Inventive Principle:
Principle #10Preliminary action

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.

Inventive Principle:
Principle #25Self-service

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

Engineering Contradiction:
Improveverification accuracyVSAvoiddata repair time
Core Design Contradiction:
ReliabilityVSLoss of time

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.

Inventive Principle:
Principle #10Preliminary action

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.

Inventive Principle:
Principle #23Feedback

3Productivity

If automated repair mechanisms are implemented, then consensus processing efficiency improves, but system complexity increases

Engineering Contradiction:
Improveconsensus processing efficiencyVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

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.

Inventive Principle:
Principle #26Copying

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.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250379757A1State data repair method and apparatus for blockchain, computer device, and medium
Publication Date: 2025.12.11 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20250379757A1 patent drawing
  • US20250379757A1 patent drawing
  • US20250379757A1 patent drawing

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.