Blockchain State Restoration Using Snapshot Read Sets

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for restoring state data in a blockchain require manual intervention and are inefficient, leading to unpredictable data unavailability and incorrect consensus results due to damaged or lost state data, affecting the consensus processing efficiency of the entire blockchain system.

Innovation Solution

A method and apparatus for restoring state data in a blockchain system that involves obtaining state data from a proposal message, executing transaction tasks, and when inconsistent results are found, retrieving read set information from another node's snapshot to restore the state data, enabling re-execution of tasks for accurate results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual intervention is used to restore state data from approved nodes, then state data can be recovered, but the consensus processing efficiency deteriorates and the system requires human participation

Engineering Contradiction:
Improvestate data restoration capabilityVSAvoidconsensus processing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system enables automatic state data restoration by having nodes autonomously detect data inconsistencies, request missing state data from other nodes, and restore their local state without manual intervention. This self-service mechanism eliminates human participation while maintaining restoration capability.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary actions by pre-storing state data in snapshots at multiple nodes before damage occurs. When state data is lost or damaged, these pre-positioned snapshots enable immediate restoration without requiring manual data collection or system停机.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If state data is continuously available for consensus processing, then consensus efficiency is maintained, but data damage or loss may occur without detection

Engineering Contradiction:
Improveconsensus processing efficiencyVSAvoiddata integrity
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system implements feedback mechanisms where nodes verify the correctness of state data by checking consistency with proposal messages and other nodes' snapshots. When inconsistencies are detected, the system triggers automatic restoration procedures, ensuring continuous data integrity without compromising consensus efficiency.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system prepares compensatory measures in advance by creating and distributing snapshots of state data to multiple nodes before any damage occurs. This cushioning strategy ensures that if state data is lost or damaged, reliable backup copies are already available for immediate restoration.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

3Loss of time

If state data is restored from snapshots of other nodes, then restoration speed improves, but network communication overhead increases

Engineering Contradiction:
Improverestoration timeVSAvoidnetwork communication overhead
Core Design Contradiction:
Loss of timeVSLoss of energy

Solution Approach 1:

The system extracts only the specific missing or damaged state data portions from snapshots stored at other nodes, rather than transferring entire snapshots. This selective extraction minimizes network communication overhead while achieving fast restoration of the required data.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentEP4722922A1State data restoration method and apparatus for blockchain, computer device, and medium
Publication Date: 2026.04.08 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • EP4722922A1 patent drawingFigure 1~2
  • EP4722922A1 patent drawingFigure 3~4
  • EP4722922A1 patent drawingFigure 5

AI summary

A state data restoration method for a blockchain, executed by a computer device that maintains a first node in a blockchain system. The method comprises: when a proposal message broadcast by a second node in the blockchain system is received, acquiring state data maintained by the first node itself, wherein the proposal message indicates a transaction task, result information for the transaction task, and a block identifier (302); executing the transaction task in the proposal message on the basis of the state data to obtain result information (304); when the result information obtained by executing the transaction task is inconsistent with the result information indicated in the proposal message, acquiring, from a snapshot of another node in the blockchain system, readset information corresponding to the block identifier in the proposal message, wherein the another node is a node in the blockchain system other than the first node (306); and restoring the state data on the basis of the readset information to obtain restored state data, wherein the restored state data is used for re-executing the transaction task to obtain an execution result (308).