Block chain transaction parallel execution method and device based on association semantics
An execution method and transaction execution technology, applied in the field of blockchain, can solve problems such as inability to guarantee consistency, and achieve the effects of avoiding transaction blocking, improving execution efficiency, and improving transaction throughput.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, this embodiment provides a method for parallel execution of blockchain transactions based on association semantics, which specifically includes the following steps:
[0043] Step 1: According to the associated semantics between the same transaction object and different transaction objects, construct a transaction dependency graph based on semantics.
[0044] What needs to be explained here is that there are two types of transactions with related semantics: one is the transaction with the same transaction object in the block, and the state of the same transaction object will be verified or changed during transaction execution, which has the semantic state association The other is the case where the associated object of the transaction in the block is the transaction object of other transactions, and the execution of the transaction needs to verify the correctness of the semantic state of the transaction associated object.
[0045] To ensure co...
Embodiment 2
[0074] Such as Figure 5 As shown, this embodiment provides a block chain transaction parallel execution device based on association semantics, which specifically includes the following modules:
[0075] A transaction dependency graph construction module 201, which is used for: constructing a transaction dependency graph based on semantics according to the associated semantics between the same transaction object and different transaction objects;
[0076] Transaction parallel execution module 202, which is used for:
[0077] According to the partial order relationship in the transaction dependency graph, select unexecuted transactions from each transaction object branch that the current pre-dependent transactions have been executed as a group of transactions and execute the transactions of this group in parallel;
[0078] After the execution of the previous group of transactions is completed, the unexecuted transactions that have already been executed by the current pre-depen...
Embodiment 3
[0086] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method for parallel execution of blockchain transactions based on association semantics as described above are implemented.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


