Blockchain Transaction Rollback for Data Consistency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Inconsistencies in multiple operations on a blockchain lead to reduced accuracy of transaction data, compromising the stability and integrity of the blockchain.

Innovation Solution

A data processing method and apparatus that rolls back successful transaction operations when any one of the operations fails, ensuring consistency and atomicity by invalidating transaction records and updating resource quantities in the transaction recording table.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If multiple transaction operations are performed on the blockchain, then the functionality and versatility of the blockchain system is improved, but the consistency and accuracy of transaction data deteriorates due to potential operation failures

Engineering Contradiction:
ImprovefunctionalityVSAvoidconsistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent applies preliminary action by locking transaction accounts before executing multiple transaction operations. This pre-locking mechanism prevents other operations from interfering with the locked accounts during the transaction process, ensuring that the accounts remain in a consistent state throughout the batch operation execution, thus maintaining reliability while enabling multiple operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements discarding and recovering through the rollback mechanism. When any transaction operation fails in a batch, the system discards all successful operations by rolling back to the pre-transaction state. This ensures that partial successes do not compromise data consistency, and the system recovers to a known good state, maintaining reliability.

Inventive Principle:
Principle #34Discarding and recovering

2Measurement precision

If rollback operations are performed to maintain consistency, then the accuracy and integrity of transaction data is improved, but the time consumption and operational complexity increases

Engineering Contradiction:
ImproveaccuracyVSAvoidtime consumption
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent uses preliminary action by recording the state of transaction accounts before batch operations begin. This pre-recording of initial states enables rapid rollback by simply restoring to the recorded state rather than performing complex reverse operations, thereby reducing time consumption while maintaining accuracy through consistent state restoration.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies copying by creating a snapshot or copy of the transaction account states before operations are executed. This copy serves as the rollback target, allowing the system to quickly restore accuracy by replacing current states with the copied pre-transaction states, minimizing time loss while ensuring data integrity.

Inventive Principle:
Principle #26Copying

3Stability of the object's composition

If transaction accounts are locked during operations, then the consistency of batch operations is improved, but the system throughput and processing speed decreases

Engineering Contradiction:
ImproveconsistencyVSAvoidthroughput
Core Design Contradiction:
Stability of the object's compositionVSProductivity

Solution Approach 1:

The patent applies preliminary action by locking all transaction accounts at the beginning of batch operations before any actual transactions are executed. This upfront locking ensures that no other operations can interfere with the locked accounts during the entire batch processing, maintaining consistency while allowing the batch operations to proceed without repeated locking/unlocking overhead, thus preserving throughput.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements continuity of useful action by maintaining the locked state throughout the entire batch operation execution without releasing locks between individual transactions. This continuous locking eliminates the need for repeated lock acquisition and release operations, reducing operational overhead and maintaining system throughput while ensuring consistency across all batch operations.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS12072866B2Data processing method and apparatus, computer device, and storage medium
Publication Date: 2024.08.27 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US12072866B2 patent drawing
  • US12072866B2 patent drawing
  • US12072866B2 patent drawing

AI summary

A data processing method for blockchain technology verifies transactions. Transaction operations on a blockchain are more consistent and the accuracy of transaction data on the blockchain is improved. A first transaction operation corresponding to a first transaction request on the blockchain, and a second transaction operation corresponding to a second transaction request on the blockchain are both performed. When an operation result corresponding to either the first transaction operation and/or the second transaction operation is a failure, then the processing on a transaction operation can be rolled back to a successful operation.