Block chain parallel transaction execution method, device and equipment and readable storage medium
A transaction execution and blockchain technology, applied in the blockchain field, can solve the problems of transaction DAG occupying a large amount of bandwidth and the execution speed of the blockchain network, etc., to achieve the effect of speeding up transaction execution and speeding up
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Such as figure 1 As shown, this embodiment provides a block chain parallel transaction execution method, which is applied to any master node in the block chain network, and the method includes step S1, step S2, step S3, step S4 and step S5.
[0046] Step S1. The master node will obtain multiple transactions to be executed sent by multiple transaction execution nodes in the blockchain network within a preset unit time period, and according to the data type of each transaction to be executed, in the Multiple parallel transactions are selected from multiple transactions to be executed. In this embodiment, the distinction of parallel transactions can be based on business types, etc.;
[0047] Step S2. According to the transaction identification of each of the parallel transactions, sort the multiple parallel transactions to obtain the first transaction sequence list. The transaction identification can be a transaction ID, and the transaction ID can be used as a sorting basi...
Embodiment 2
[0063] Such as Figure 4 As shown, this embodiment provides a block chain parallel transaction execution method, which is applied to any transaction execution node in the block chain network, and the method includes step S6, step S7 and step S8.
[0064] Step S6. Construct the transaction DAG according to the transaction dependency set and the first transaction sequence table. Since the transaction dependency set indirectly reflects the internal relationship of elements in the transaction DAG, combined with the first transaction sequence table, the transaction DAG is constructed Compared with constructing a transaction DAG by analyzing the correlation between each parallel transaction one by one, the difficulty decreases exponentially, so that each node can save a lot of time in constructing the DAG;
[0065] Step S7. Execute the transaction DAG, and calculate and obtain transaction execution results corresponding to multiple parallel transactions;
[0066] Step S8. Combine m...
Embodiment 3
[0068] Such as figure 2 As shown, this implementation provides a block chain parallel transaction execution device, which is applied to any master node in the block chain network, and the device includes a first acquisition module 71, a first calculation module 72, a second calculation module module 73 , a third calculation module 74 and a first sending module 75 .
[0069] The first acquiring module 71 is configured to acquire a plurality of transactions to be executed, and filter out a plurality of parallel transactions among the plurality of transactions to be executed according to the data type of each transaction to be executed;
[0070] The first calculation module 72 is configured to sort a plurality of parallel transactions according to the transaction identification of each parallel transaction, and obtain a first transaction sequence list;
[0071] The second calculation module 73 is configured to construct a transaction DAG according to the first transaction seque...
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