Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Transaction request parallel processing method and device, equipment and medium

A parallel processing and transaction technology, applied in the field of blockchain, can solve problems such as lack of versatility, inability to solve concurrency problems, and inability to apply blockchain networks to achieve the effect of parallel processing and speeding up processing

Active Publication Date: 2019-06-28
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, in the traditional blockchain system that implements transaction requests based on smart contracts, blockchain nodes may receive many transaction requests based on smart contracts. During the execution of these transaction requests, due to possible gaps between transaction requests Dependencies, so it is difficult to execute in parallel and pack into blocks
[0003] Based on this, in the prior art, for transaction requests in the form of fields, Directed Acyclic Graph (DAG) can be used to solve the concurrency problem, but this method is not universal and cannot be applied to transaction requests in the form of smart contracts blockchain network, which cannot solve the concurrency problem of transaction requests based on smart contracts

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Transaction request parallel processing method and device, equipment and medium
  • Transaction request parallel processing method and device, equipment and medium
  • Transaction request parallel processing method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] figure 2 It is a flow chart of a method for parallel processing of transaction requests based on smart contracts provided by Embodiment 1 of the present invention. This embodiment is applicable to how to process transaction requests generated based on smart contracts. It is especially applicable to how to effectively identify the dependencies between transaction requests based on smart contracts in order to realize concurrent processing of transaction requests when the initiating node of the transaction request uses the aforementioned smart contract-based transaction request processing scheme to process the transaction request scene. The solution of the embodiment of the present invention can be applied to the transaction request processing of the block generation node in the block generation process, and can also be applied to the processing of the transaction request in the verification process of the block by other blockchain nodes. The method can be executed by a ...

Embodiment 2

[0081] image 3 It is a flow chart of a smart contract-based parallel processing method for transaction requests provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment further analyzes the input dependent data set and output change data set according to each transaction request. , to determine the dependencies among the various transaction requests for explanation. see image 3 , the method may specifically include:

[0082] S310. Obtain at least two smart contract-based transaction requests transmitted in the blockchain network.

[0083] S320. Extract two transaction requests, and determine a dependency relationship between the two transaction requests according to the input dependency data set and the output change data set of the two transaction requests.

[0084] Specifically, after the local node obtains at least two transaction requests based on smart contracts from the blockchain network, it can judge the dependency ...

Embodiment 3

[0092] Figure 4 It is a flow chart of a method for parallel processing of transaction requests based on smart contracts provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment further includes input dependent data sets and output change data according to each transaction request. Set, determine the dependency relationship between each transaction request and explain it. see Figure 4 , the method may specifically include:

[0093] S410. Obtain at least two smart contract-based transaction requests transmitted in the blockchain network.

[0094] S420. Determine a first transaction request from the transaction requests whose dependencies are to be identified.

[0095] In this embodiment, the first transaction request may be any one of the transaction requests whose dependencies are to be identified; it may also be the transaction request first obtained by the local node among the transaction requests whose dependencies are to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a transaction request parallel processing method and device, equipment and a medium. The method is applied to a block chain node, and comprises the followingsteps: obtaining at least two transaction requests based on a smart contract transmitted in a block chain network; determining a dependency relationship among the transaction requests according to theinput dependency data set and the output change data set of each transaction request; wherein the input dependence data set and the output change data set in each transaction request are obtained bypre-executing the transaction request locally by an initiating node of the transaction request; and carrying out parallel processing on the transaction requests without the dependency relationship according to the dependency relationship among the transaction requests. By adopting the technical scheme provided by the embodiment of the invention, the dependency relationship between the transactionrequests can be effectively determined, so that parallel processing of the transaction requests can be realized to the maximum extent, and the processing speed is increased.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of blockchain, and in particular to a method, device, device and medium for parallel processing of transaction requests. Background technique [0002] With the development of blockchain technology, the form and quantity of transaction requests to be processed by blockchain nodes are gradually increasing. Among them, in the traditional blockchain system that implements transaction requests based on smart contracts, blockchain nodes may receive many transaction requests based on smart contracts. During the execution of these transaction requests, due to possible gaps between transaction requests Dependencies, so it is difficult to execute in parallel and package them into blocks. [0003] Based on this, in the prior art, for transaction requests in the form of fields, Directed Acyclic Graph (DAG) can be used to solve concurrency problems, but this method is not universal and cannot b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products