Blockchain Transaction Clearing via Relay Cache Synchronization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The block chain network faces increased data storage load and instability due to transaction data caching at each service node, leading to inefficient data clearing during block synchronization.
Innovation Solution
Implement a data processing method and apparatus that uses a relay node to manage network isolation between a service network and a core consensus network, transmitting compact block identifications and synchronization requests to reduce redundant data transmission and improve clearing efficiency by storing transaction identifiers in a relay cache.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If each service node caches transaction data in its node memory, then the service node can perform block synchronization, but the entire service network bears a larger amount of data storage load, increasing network load and reducing stability
Solution Approach 1:
The patent segments the transaction data storage function by introducing a relay cache that stores transaction identifiers separately from the service nodes. Service nodes only need to cache transaction data temporarily during block synchronization, while the relay cache maintains the authoritative transaction identifier mappings. This segmentation reduces the storage burden on each service node while preserving synchronization capability.
Solution Approach 2:
The relay node acts as an intermediary between service nodes and the consensus network. It maintains a relay cache that stores transaction identifiers and their corresponding relationships, mediating the data clearing process during block synchronization. This intermediary mechanism allows service nodes to clear their caches more efficiently without bearing the full storage load.
2Adaptability or versatility
If service nodes cache transaction data locally, then they can independently perform block synchronization, but when network instability occurs, transaction data may not be stored in the service node's memory, reducing data clearing efficiency
Solution Approach 1:
The relay node performs preliminary actions by pre-storing transaction identifiers and their mappings in the relay cache before block synchronization occurs. When a service node needs to clear its cache during block synchronization, it can query the relay cache for the authoritative transaction identifier mappings, ensuring accurate and efficient clearing even when local caches are incomplete or lost due to network instability.
Solution Approach 2:
The system implements a feedback mechanism where service nodes query the relay cache during block synchronization to verify which transaction identifiers should be cleared. The relay cache provides feedback information about the correct transaction mappings, allowing service nodes to accurately clear their local caches based on the authoritative state maintained by the relay node, thereby improving clearing efficiency despite network instabilities.
Data Source
AI summary
Embodiments of this disclosure disclose a data processing method and apparatus, a device, and a storage medium. The method includes: after receiving a block synchronization request carrying a target block height transmitted by a first service node, transmitting a compact block identification and the block synchronization request to a consensus node; the compact block identification being used for instructing the consensus node to determine structural information of a compact block corresponding to a block to be synchronized; searching for a local transaction identifier matching a target transaction identifier in a first relay cache; and in the first relay cache, taking local transaction data corresponding to the found local transaction identifier as first key transaction data, and performing data clearing on the first key transaction data successfully synchronized to the first service node.


