Parallel processing method and device of block chain data, equipment and storage medium
A parallel processing and processing device technology, applied in the field of blockchain data processing, can solve problems such as waste of resources, long time, and inability to exert processing capabilities, and achieve the effect of avoiding processing suspension or errors and taking into account dependencies
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Figure 1A It is a flowchart of a parallel processing method for blockchain data provided by Embodiment 1 of the present invention, Figure 1B and 1C It is a schematic diagram of two kinds of dependency trees involved in Embodiment 1 of the present invention. In this embodiment, branch prediction is implemented based on a directed acyclic graph (Directed Acyclic Graph, DAG), so that parallel processing of transaction requests can be realized. The method can be executed by the block chain data parallel processing device provided by the embodiment of the present invention, and the device can be realized by software and / or hardware. see Figure 1A , the method specifically includes:
[0031] S110, identify the dependencies of the transaction requests to be processed, so as to construct a directed acyclic graph including at least one dependency tree, where the dependency tree is used to record the dependencies between the transaction requests.
[0032] Among them, the tr...
Embodiment 2
[0041] figure 2 It is a flowchart of a parallel processing method for blockchain data provided by Embodiment 2 of the present invention. The parallel processing method of blockchain data is based on the above-mentioned embodiments, and further identifies the dependencies of the transaction requests to be processed, so as to construct a directed acyclic graph including at least one dependency tree for explanation. Specifically, see figure 2 The method can include:
[0042] S210. Identify the content of the setting field from each transaction request to be processed.
[0043]Specifically, the content of the setting field may be different for different forms of the transaction request; as long as the field content is more readable and easy to quickly identify the transaction request form.
[0044] Take the form of Bitcoin as an example for illustration. Among them, in the form of Bitcoin, each transaction request is reflected by the inflow and outflow of Bitcoin; and each t...
Embodiment 3
[0054] image 3 It is a flow chart of a parallel processing method for blockchain data provided by Embodiment 3 of the present invention. The parallel processing method for blockchain data is based on the above-mentioned embodiments, and provides a directed acyclic graph based on pairs. A method for parallel processing of at least two transaction requests without dependencies. Specifically, see image 3 The method can include:
[0055] S310. Identify the dependencies of the transaction requests to be processed to construct a directed acyclic graph including at least one dependency tree, where the dependency tree is used to record the dependencies between the transaction requests.
[0056] S320. From each dependency tree, search for transaction requests with the same dependency in ascending order of dependency, and process them in parallel until the transaction request with the largest dependency is processed.
[0057] Wherein, the degree of dependence is determined accordin...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com