WO2021027612A1 - Method and apparatus for executing transaction in blockchain - Google Patents
Method and apparatus for executing transaction in blockchain Download PDFInfo
- Publication number
- WO2021027612A1 WO2021027612A1 PCT/CN2020/106670 CN2020106670W WO2021027612A1 WO 2021027612 A1 WO2021027612 A1 WO 2021027612A1 CN 2020106670 W CN2020106670 W CN 2020106670W WO 2021027612 A1 WO2021027612 A1 WO 2021027612A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transaction
- contract
- transactions
- shared variable
- executed
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Definitions
- This application relates to the field of Fintech and Blockchain, and in particular to a method and device for executing transactions in a blockchain.
- This application provides a transaction execution method and device in a blockchain to solve the problem of long transaction completion time in a blockchain in the prior art.
- this application provides a transaction execution method in the blockchain, which is suitable for smart contracts that include multiple contract interfaces.
- the method includes: for any one of the N transactions to be processed, first determining the contract interface corresponding to the transaction in the smart contract, and then according to the shared variable information of the contract interface and the variables of the transaction Information, determine the shared variables of the transaction, and then determine at least two first transactions executed in parallel according to the shared variables of the N transactions, so as to execute the at least two first transactions in parallel.
- N is an integer greater than 1
- the shared variable information is used to record the shared variable of the contract interface
- the shared variable is a variable possessed by at least two contract interfaces
- the at least two first transactions correspond to different And the at least two first transactions do not have the same shared variable.
- the contract interface corresponding to each of the N transactions to be processed in the smart contract can be determined, and the shared variable of each contract interface recorded in the shared variable information of the N transactions can be determined At least two transactions executed in parallel. Since at least two transactions executed in parallel correspond to different contract interfaces, and at least two transactions do not have the same shared variable, when at least two transactions are executed in parallel, the existence of the same shared variable will not cause transaction execution conflicts. It can be seen that this method can execute transactions in parallel on the basis of ensuring the normal execution of transactions, thereby helping to reduce the completion time of N transactions.
- the shared variable contract is a contract that records the contract address, contract interface, and contract interface corresponding to shared variable information of the smart contract.
- a shared variable contract that records the smart contract's contract address, contract interface, and contract interface corresponding to shared variable information is formed in advance, so that subsequent use can be directly based on the contract address and transaction of a smart contract in the smart contract
- the corresponding contract interface determines the shared variable information corresponding to the transaction from the shared variable contract to improve the reliability of the shared variable information corresponding to the determined transaction.
- the second transaction in the serial transaction combination is executed first, and then after the second transaction is executed serially, if the shared variable of the transaction that has not been executed in the serial transaction combination is determined, If there are at least two third transactions executed in parallel, the at least two third transactions are executed in parallel.
- the second transaction is any transaction in a serial transaction combination
- the serial transaction combination is a transaction other than a transaction executed in parallel among the N transactions, and the at least two third transactions correspond to different And the at least two third transactions do not have the same shared variable.
- the second transaction in the serial transaction combination is executed serially, so that one or more transactions in the serial transaction combination can be executed in parallel only with transactions that share variables with the second transaction.
- the shared variables of the transactions that have not been executed in the serial transaction combination if it is determined that there are at least two third transactions executed in parallel, the at least two third transactions are executed in parallel.
- the transactions that share variables with the second transaction in the serial transaction combination are executed in parallel, which can further increase the transactions that can be executed in parallel and reduce the completion time of the transaction.
- the second transaction is the transaction with the largest number of public transactions in the serial transaction combination.
- the public transaction is a transaction that shares variables with the transaction among all transactions except the transaction in the serial transaction combination.
- the remaining transactions in the serial transaction combination can be released to the maximum extent that share variables with the second transaction Transactions, thereby maximizing the number of at least two third transactions that can continue to be executed in parallel.
- this application provides a transaction execution device in the blockchain, which is suitable for smart contracts that include multiple contract interfaces.
- the device includes:
- the determining module is used for determining the contract interface corresponding to the transaction in the smart contract for any one of the N transactions to be processed, and then according to the shared variable information of the contract interface and the variables of the transaction Information to determine the shared variables of the transaction;
- the processing module is configured to determine at least two first transactions executed in parallel according to the shared variables of the N transactions, and then execute the at least two first transactions in parallel.
- N is an integer greater than 1
- the shared variable information is used to record the shared variable of the contract interface
- the shared variable is a variable possessed by at least two contract interfaces
- the at least two first transactions correspond to different And the at least two first transactions do not have the same shared variable.
- the determining module is further configured to: determine the transaction corresponding to the transaction from the shared variable contract according to the contract address of the smart contract and the contract interface corresponding to the transaction in the smart contract Shared variable information.
- the shared variable contract is a contract that records the contract address, contract interface, and contract interface corresponding to shared variable information of the smart contract.
- the processing module is further configured to: serially execute the second transaction in the serial transaction combination, after the serial execution is completed, if the transaction is not executed according to the transaction in the serial transaction combination Shared variable, it is determined that there are at least two third transactions executed in parallel, then the at least two third transactions are executed in parallel.
- the second transaction is any transaction in a serial transaction combination
- the serial transaction combination is a transaction other than a transaction executed in parallel among the N transactions, and the at least two third transactions correspond to different And the at least two third transactions do not have the same shared variable.
- the second transaction is the transaction with the largest number of public transactions in the serial transaction combination.
- the public transaction is a transaction that shares variables with the transaction among all transactions except the transaction in the serial transaction combination.
- the present application provides a computer device including a program or instruction, and when the program or instruction is executed, it is used to execute the method described in the first aspect and any one of the first aspect.
- the present application provides a storage medium including a program or instruction, when the program or instruction is executed, the method described in the first aspect and any one of the first aspect is executed.
- Figure 1 is a schematic diagram of the block chain
- FIG. 2 is a schematic diagram of the process flow of a method for executing transactions in a blockchain according to an embodiment of the application;
- FIG. 3 is a schematic diagram of a step flow diagram of deploying a shared variable contract on a blockchain according to an embodiment of the application
- FIG. 4 is a schematic diagram of a step flow diagram of extracting shared variables of transactions on the blockchain according to an embodiment of the application;
- FIG. 5 is a schematic structural diagram of a transaction execution device in a blockchain provided by an embodiment of the application.
- Blockchain As shown in Figure 1, a blockchain is a chain composed of a series of blocks. In addition to recording the data of this block, each block will also record the hash value of the previous block. Through this Way to form a chain.
- Node Each participant in the network is a node, and the node participates in network formation and data exchange.
- a node refers to a participant with a unique identity.
- the node has a complete copy of the ledger and has the ability to participate in the consensus and maintenance of the blockchain network.
- Smart contract is a computer protocol designed to spread, verify, or execute a contract in an information-based way. Smart contracts allow trusted transactions without a third party, which are traceable and irreversible.
- the specific form of the smart contract is the code deployed on the blockchain to complete a specific function.
- Solidity is a mainstream smart contract programming language. Smart contracts written in Solidity language are called Solidity contracts.
- a contract address will be generated, and users can call this smart contract through the contract address.
- the function defined in the smart contract is called the contract interface.
- the call to the smart contract is to call a contract interface in the contract through the contract address.
- a transaction is a user's request for an operation of the smart contract interface deployed on the blockchain.
- the transaction is initiated by the user and sent from the user's client to the blockchain node. After the blockchain node receives the transaction, it calls the corresponding smart contract according to the contract address and interface specified by the transaction.
- Shared variables The interface (function) of the smart contract operates on some global variables, and these global variables may be manipulated by the interface of another contract.
- the global variables manipulated in the interface of the smart contract are called shared variables.
- a transaction calls an interface of a smart contract, which involves the operation of some shared variables. These shared variables are called the shared variables of this transaction.
- an embodiment of the present application proposes a transaction execution method in the blockchain, which is suitable for smart contracts including multiple contract interfaces, and a schematic diagram of the specific steps of the method is shown in FIG. 2.
- Step 201 For any one of the N transactions to be processed, determine the contract interface corresponding to the transaction in the smart contract, and determine the contract interface based on the shared variable information of the contract interface and the variable information of the transaction. The shared variables of the transaction.
- N is an integer greater than 1
- the shared variable information is used to record the shared variable of the contract interface
- the shared variable is a variable possessed by at least two contract interfaces.
- Step 202 Determine at least two first transactions to be executed in parallel according to the shared variables of the N transactions.
- the at least two first transactions correspond to different contract interfaces, and the at least two first transactions do not have the same shared variable.
- Step 203 execute the at least two first transactions in parallel.
- the target transaction has been marked with the contract address of the smart contract and the corresponding target contract interface in the smart contract .
- Shared variable information is the concept proposed in this application.
- Shared variable information is a reference for extracting shared variables in transactions. Before a transaction is executed, shared variables can be extracted according to the corresponding shared variable information.
- the shared variable information can have a one-to-one correspondence with the contract interface of the smart contract, and one contract interface has a corresponding shared variable information. It should be pointed out that this application only explains how the shared variable information is stored on the blockchain and at which stage it is used.
- the specific form of shared variable information for example, a table or an array
- the method of extracting shared variables in transactions based on shared variable information are not limited. As long as the shared variable information and the transaction can be correctly matched, and the shared variable can be extracted, the method described in this application can be used.
- the contract developer can define shared variable information for the interface when developing each contract interface.
- Shared variable information can also be stored on the blockchain in the form of a contract.
- the shared variable information When the contract is deployed, the shared variable information will be recorded on the blockchain at the same time.
- the blockchain node Before the transaction is executed, the blockchain node will query the shared variable information of the contract interface according to the contract interface called by the transaction, and then extract the shared variable from the transaction based on the shared variable information.
- step 201 after determining the contract interface corresponding to the transaction in the smart contract, and before determining the shared variable of the transaction, the transaction corresponding to the share can be determined in the following manner Variable information:
- the shared variable information corresponding to the transaction is determined from the shared variable contract.
- the shared variable contract is a contract that records the contract address, contract interface, and contract interface corresponding to shared variable information of the smart contract.
- a shared variable contract is built in the nodes of the blockchain to record the shared variable information corresponding to each contract interface.
- the shared variable information corresponding to each contract interface can be defined for each contract interface when the contract developer develops the contract interface.
- the smart contract is deployed on the blockchain, the blockchain will call the shared variable contract and record the shared variable information on the blockchain.
- the contract interface corresponds to the shared variable information one to one.
- the shared variable template contract is also a smart contract, and its operation will also be agreed on by the blockchain. That is to say, the operation of the shared variable template contract when deploying the contract will also be agreed by all nodes in the blockchain, recorded on the blockchain, and visible to all nodes. Therefore, when a smart contract is deployed, the shared variable information corresponding to its contract interface will also be agreed upon, recorded on the blockchain, and visible to all nodes. In this way, the shared variable information is equivalent to being deployed on the blockchain.
- Step 301 The contract developer writes a smart contract.
- Step 302 The contract developer writes shared variable information corresponding to the contract interface.
- step 302 may be executed in parallel while step 301 is executed, that is, while writing the contract interface of the smart contract, the shared variable information corresponding to the contract interface is written.
- the shared variable information in step 302 must be correct, so as to provide a reference for the extraction of shared variables in the future.
- Step 303 The node performs the operation of deploying the smart contract and calls the shared variable contract.
- Step 304 Use the contract address of the smart contract, the contract interface, and the shared variable information corresponding to the contract interface as parameters, and pass them into the interface of the shared variable contract.
- Step 305 The blockchain reaches a consensus and the smart contract is successfully deployed. At the same time, the shared variable contract was successfully deployed and visible to all nodes.
- FIG. 4 exemplarily shows a schematic diagram of a step flow diagram of extracting shared variables of a transaction on a blockchain provided by an embodiment of the present application. As shown in FIG. 4, the method includes:
- Step 401 The user of the smart contract sends a transaction and calls the contract interface of the smart contract.
- Step 402 After receiving the transaction, the node takes out the contract address and the called contract interface from the transaction.
- Step 403 The node queries the shared variable information of the transaction from the shared variable contract according to the contract address and the contract interface.
- Step 404 The node extracts the shared variable of the transaction from the transaction according to the shared variable information.
- step 201 takes a specific example to illustrate the implementation process of step 201 to step 202.
- the N transactions to be processed are:
- the contract interface has many input parameters, some are required parameters, and some are optional parameters. Therefore, the parameters entered in transaction 1 are not necessarily all the input parameters of the contract interface.
- Shared variable information 1 a, b, d, f, l, m corresponding to contract interface 1;
- Shared variable information 2 corresponding to contract interface 2 c, e, k, n;
- Shared variable information 3 corresponding to contract interface 3 a, b, c, j, u;
- Shared variable information 6 corresponding to contract interface 6 p, q, r.
- the shared variable 1 of transaction 1 is the variable recorded in the shared variable information 1 of the variables of transaction 1, namely a, b, d, f, l.
- the shared variable 2 of transaction 2 is the variable recorded in the shared variable information 2 of the variables of transaction 2, namely c, e, and k.
- the shared variable 3 of transaction 3 is the variables recorded in the shared variable information 3 of the variables of transaction 3, namely a, b, c, j.
- the shared variable 4 of transaction 4 is the variable recorded in the shared variable information 4 among the variables of transaction 4, namely b, k.
- the shared variable 5 of transaction 5 is the variable recorded in the shared variable information 5 of the variable of transaction 5, namely c, l.
- the shared variable 6 of transaction 6 is the variable recorded in the shared variable information 6 of the variable of transaction 6, that is, p, q.
- the at least two first transactions that can be executed in parallel may be transaction 1, transaction 2, and transaction 6.
- step 201 to step 203 is as follows:
- the second transaction in the serial transaction combination is executed first. After the second transaction is executed serially, if it is determined that there are at least two transactions executed in parallel according to the shared variable of the transaction that has not been executed in the serial transaction combination. Third transactions, then the at least two third transactions are executed in parallel.
- the serial transaction combination is a transaction other than the transaction executed in parallel among the N transactions
- the second transaction is any transaction in the serial transaction combination
- the at least two third transactions correspond to different And the at least two third transactions do not have the same shared variable.
- the second transaction is transaction 3, there are at least two third transactions executed in parallel, including transaction 4 and transaction 5. If the second transaction is transaction 4, there are no at least two third transactions executed in parallel.
- the embodiment of the present application may also select the second transaction according to a predetermined rule.
- the second transaction may be the transaction with the largest number of public transactions in the serial transaction combination.
- a public transaction is a transaction that has a shared variable with the transaction among all transactions except the transaction in the serial transaction combination.
- the number of public transactions in transaction 3 is 2
- the number of public transactions in transaction 4 is 1
- the number of public transactions in transaction 5 is 1, so the second transaction can be transaction 3.
- the transaction can be directly executed serially.
- FIG. 5 is a schematic structural diagram of a transaction execution device in a blockchain provided by an embodiment of the application, and the device is suitable for a smart contract including multiple contract interfaces. As shown in Figure 5, the device includes:
- the determining module 501 is configured to determine the contract interface corresponding to the transaction in the smart contract for any one of the N transactions to be processed, according to the shared variable information of the contract interface and the variable information of the transaction , Determine the shared variable of the transaction; where N is an integer greater than 1, and the shared variable information is used to record the shared variable of the contract interface; the shared variable is a variable that both at least two contract interfaces have;
- the processing module 502 is configured to determine at least two first transactions to be executed in parallel according to the shared variables of the N transactions, and to execute the at least two first transactions in parallel; wherein the at least two first transactions correspond to different And the at least two first transactions do not have the same shared variable.
- the determining module 501 is further configured to:
- the shared variable information corresponding to the transaction is determined from the shared variable contract.
- the shared variable contract is a contract that records the contract address, contract interface, and contract interface corresponding to shared variable information of the smart contract.
- processing module 502 is further configured to:
- the second transaction in the serial transaction combination is executed serially, and after the second transaction is executed serially, if it is determined that there are at least two third transactions executed in parallel according to the shared variable of the transaction that has not been executed in the serial transaction combination Transaction, the at least two third transactions are executed in parallel.
- the serial transaction combination is a transaction other than the transaction executed in parallel among the N transactions
- the second transaction is any transaction in the serial transaction combination
- the at least two third transactions correspond to different And the at least two third transactions do not have the same shared variable.
- the second transaction is the transaction with the largest number of public transactions in the serial transaction combination.
- a public transaction is a transaction that has a shared variable with the transaction among all transactions except the transaction in the serial transaction combination.
- An embodiment of the present application also provides a computer device, including a program or instruction, when the program or instruction is executed, it is used to execute the transaction execution method in any block chain described in FIGS. 2 to 4.
- An embodiment of the present application also provides a storage medium including a program or instruction, when the program or instruction is executed, it is used to execute the transaction execution method in any block chain described in FIGS. 2 to 4.
- the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
- a computer-usable storage media including but not limited to disk storage, optical storage, etc.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
Abstract
Description
Claims (10)
- 一种区块链中的交易执行方法,其特征在于,适用于包括多个合约接口的智能合约;所述方法包括:A transaction execution method in a blockchain, characterized in that it is suitable for a smart contract including multiple contract interfaces; the method includes:针对待处理的N个交易中的任一个交易,确定所述交易在所述智能合约中对应的合约接口;根据所述合约接口的共享变量信息和所述交易的各变量信息,确定所述交易的共享变量;所述共享变量信息用于记录所述合约接口的共享变量;所述共享变量为至少两个合约接口均具有的变量;N为大于1的整数;For any one of the N transactions to be processed, determine the contract interface corresponding to the transaction in the smart contract; determine the transaction according to the shared variable information of the contract interface and the variable information of the transaction The shared variable information; the shared variable information is used to record the shared variable of the contract interface; the shared variable is a variable that has at least two contract interfaces; N is an integer greater than 1;根据所述N个交易的共享变量,确定并行执行的至少两个第一交易;所述至少两个第一交易对应不同的合约接口,且所述至少两个第一交易不具有相同的共享变量;According to the shared variables of the N transactions, determine at least two first transactions to be executed in parallel; the at least two first transactions correspond to different contract interfaces, and the at least two first transactions do not have the same shared variable ;并行执行所述至少两个第一交易。The at least two first transactions are executed in parallel.
- 如权利要求1所述的方法,其特征在于,所述确定所述交易在所述智能合约中对应的合约接口之后,所述确定所述交易的共享变量之前,还包括:The method according to claim 1, wherein after determining the contract interface corresponding to the transaction in the smart contract and before determining the shared variable of the transaction, the method further comprises:根据所述智能合约的合约地址和所述交易在所述智能合约中对应的合约接口,从共享变量合约中确定所述交易对应的共享变量信息;所述共享变量合约为记录智能合约的合约地址、合约接口及合约接口对应共享变量信息的合约。According to the contract address of the smart contract and the contract interface corresponding to the transaction in the smart contract, determine the shared variable information corresponding to the transaction from the shared variable contract; the shared variable contract records the contract address of the smart contract , Contract interface and contract interface correspond to contracts that share variable information.
- 如权利要求1或2所述的方法,其特征在于,还包括:The method of claim 1 or 2, further comprising:串行执行第二交易;所述第二交易为串行交易组合中的任一交易;所述串行交易组合为所述N个交易中除并行执行的交易之外的交易;The second transaction is executed serially; the second transaction is any transaction in a serial transaction combination; the serial transaction combination is a transaction other than the transactions executed in parallel among the N transactions;串行执行所述第二交易之后,若根据所述串行交易组合中尚未执行的交易的共享变量,确定存在并行执行的至少两个第三交易,则并行执行所述至少两个第三交易;所述至少两个第三交易对应不同的合约接口,且所述至少两个第三交易不具有相同的共享变量。After the second transaction is executed serially, if it is determined that there are at least two third transactions executed in parallel according to the shared variables of the transactions that have not been executed in the serial transaction combination, then the at least two third transactions are executed in parallel ; The at least two third transactions correspond to different contract interfaces, and the at least two third transactions do not have the same shared variable.
- 如权利要求3所述的方法,其特征在于,所述第二交易为所述串行交 易组合中公共交易个数最多的交易;其中,所述公共交易为所述串行交易组合中除该交易外的所有交易中,与该交易存在共享变量的交易。The method of claim 3, wherein the second transaction is the transaction with the largest number of public transactions in the serial transaction combination; wherein the public transaction is the serial transaction combination except the In all transactions other than the transaction, there is a transaction that shares variables with the transaction.
- 一种区块链中的交易执行装置,其特征在于,适用于包括多个合约接口的智能合约;所述装置包括:A transaction execution device in a blockchain, which is characterized in that it is suitable for smart contracts including multiple contract interfaces; the device includes:确定模块,用于针对待处理的N个交易中的任一个交易,确定所述交易在所述智能合约中对应的合约接口;根据所述合约接口的共享变量信息和所述交易的各变量信息,确定所述交易的共享变量;所述共享变量信息用于记录所述合约接口的共享变量;所述共享变量为至少两个合约接口均具有的变量;N为大于1的整数;The determining module is used to determine the contract interface corresponding to the transaction in the smart contract for any one of the N transactions to be processed; according to the shared variable information of the contract interface and the variable information of the transaction , Determine the shared variable of the transaction; the shared variable information is used to record the shared variable of the contract interface; the shared variable is a variable possessed by at least two contract interfaces; N is an integer greater than 1;处理模块,用于根据所述N个交易的共享变量,确定并行执行的至少两个第一交易,并行执行所述至少两个第一交易;所述至少两个第一交易对应不同的合约接口,且所述至少两个第一交易不具有相同的共享变量。The processing module is configured to determine at least two first transactions to be executed in parallel according to the shared variables of the N transactions, and to execute the at least two first transactions in parallel; the at least two first transactions correspond to different contract interfaces , And the at least two first transactions do not have the same shared variable.
- 如权利要求5所述的装置,其特征在于,所述确定模块还用于:The device according to claim 5, wherein the determining module is further configured to:根据所述智能合约的合约地址和所述交易在所述智能合约中对应的合约接口,从共享变量合约中确定所述交易对应的共享变量信息;所述共享变量合约为记录智能合约的合约地址、合约接口及合约接口对应共享变量信息的合约。According to the contract address of the smart contract and the contract interface corresponding to the transaction in the smart contract, determine the shared variable information corresponding to the transaction from the shared variable contract; the shared variable contract records the contract address of the smart contract , Contract interface and contract interface correspond to contracts that share variable information.
- 如权利要求5或6所述的装置,其特征在于,所述处理模块还用于:The device according to claim 5 or 6, wherein the processing module is further configured to:串行执行第二交易;所述第二交易为串行交易组合中的任一交易;所述串行交易组合为所述N个交易中除并行执行的交易之外的交易;The second transaction is executed serially; the second transaction is any transaction in a serial transaction combination; the serial transaction combination is a transaction other than the transactions executed in parallel among the N transactions;串行执行所述第二交易之后,若根据所述串行交易组合中尚未执行的交易的共享变量,确定存在并行执行的至少两个第三交易,则并行执行所述至少两个第三交易;所述至少两个第三交易对应不同的合约接口,且所述至少两个第三交易不具有相同的共享变量。After the second transaction is executed serially, if it is determined that there are at least two third transactions executed in parallel according to the shared variables of the transactions that have not been executed in the serial transaction combination, then the at least two third transactions are executed in parallel ; The at least two third transactions correspond to different contract interfaces, and the at least two third transactions do not have the same shared variable.
- 如权利要求7所述的装置,其特征在于,所述第二交易为所述串行交易组合中公共交易个数最多的交易;其中,公共交易为所述串行交易组合中除该交易外的所有交易中,与该交易存在共享变量的交易。The device of claim 7, wherein the second transaction is the transaction with the largest number of public transactions in the serial transaction combination; wherein the public transaction is the transaction except the transaction in the serial transaction combination Among all transactions in, there are transactions that share variables with this transaction.
- 一种计算机设备,其特征在于,包括程序或指令,当所述程序或指令被执行时,如权利要求1至4中任意一项所述的方法被执行。A computer device characterized by comprising a program or instruction, and when the program or instruction is executed, the method according to any one of claims 1 to 4 is executed.
- 一种存储介质,其特征在于,包括程序或指令,当所述程序或指令被执行时,如权利要求1至4中任意一项所述的方法被执行。A storage medium, characterized by comprising a program or instruction, and when the program or instruction is executed, the method according to any one of claims 1 to 4 is executed.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910744161.4A CN110490742B (en) | 2019-08-13 | 2019-08-13 | Transaction execution method and device in blockchain |
CN201910744161.4 | 2019-08-13 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021027612A1 true WO2021027612A1 (en) | 2021-02-18 |
Family
ID=68550868
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/106670 WO2021027612A1 (en) | 2019-08-13 | 2020-08-03 | Method and apparatus for executing transaction in blockchain |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110490742B (en) |
WO (1) | WO2021027612A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110490742B (en) * | 2019-08-13 | 2024-04-12 | 深圳前海微众银行股份有限公司 | Transaction execution method and device in blockchain |
CN111292192A (en) * | 2020-02-18 | 2020-06-16 | 杭州复杂美科技有限公司 | Transaction parallel execution method, device and storage medium |
CN113867903B (en) * | 2021-12-06 | 2022-04-01 | 深圳前海微众银行股份有限公司 | Method and device for determining parallel conflict domain of intelligent contract in block chain |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108510389A (en) * | 2018-03-30 | 2018-09-07 | 深圳前海微众银行股份有限公司 | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain |
CN109636592A (en) * | 2017-10-20 | 2019-04-16 | 北京航空航天大学 | High-performance intelligence Contract Design |
US20190228409A1 (en) * | 2017-09-13 | 2019-07-25 | Vijay Madisetti | Transaction Pools Using Smart Contracts and Blockchains |
CN110490742A (en) * | 2019-08-13 | 2019-11-22 | 深圳前海微众银行股份有限公司 | A kind of transaction in block chain executes method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10572361B2 (en) * | 2017-04-28 | 2020-02-25 | The Boeing Company | Concurrent production use of a production enterprise system and testing of a modified enterprise system |
CN107679857B (en) * | 2017-10-10 | 2021-04-27 | 马晶瑶 | Block chain cross-chain transaction method and storage medium |
CN108537543B (en) * | 2018-03-30 | 2023-07-28 | 百度在线网络技术(北京)有限公司 | Parallel processing method, device, equipment and storage medium for blockchain data |
CN108681565B (en) * | 2018-04-28 | 2020-11-10 | 百度在线网络技术(北京)有限公司 | Block chain data parallel processing method, device, equipment and storage medium |
-
2019
- 2019-08-13 CN CN201910744161.4A patent/CN110490742B/en active Active
-
2020
- 2020-08-03 WO PCT/CN2020/106670 patent/WO2021027612A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190228409A1 (en) * | 2017-09-13 | 2019-07-25 | Vijay Madisetti | Transaction Pools Using Smart Contracts and Blockchains |
CN109636592A (en) * | 2017-10-20 | 2019-04-16 | 北京航空航天大学 | High-performance intelligence Contract Design |
CN108510389A (en) * | 2018-03-30 | 2018-09-07 | 深圳前海微众银行股份有限公司 | Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain |
CN110490742A (en) * | 2019-08-13 | 2019-11-22 | 深圳前海微众银行股份有限公司 | A kind of transaction in block chain executes method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110490742B (en) | 2024-04-12 |
CN110490742A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027612A1 (en) | Method and apparatus for executing transaction in blockchain | |
EP3560143B1 (en) | Data isolation in a blockchain network | |
TWI714847B (en) | Method, device and electronic equipment for processing consensus request in blockchain consensus network | |
US10255108B2 (en) | Parallel execution of blockchain transactions | |
WO2018214898A1 (en) | Method and device for writing service data in block chain system | |
WO2021047541A1 (en) | Method and device for obtaining transaction dependency relationship in blockchain | |
WO2021057482A1 (en) | Method and device for generating bloom filter in blockchain | |
US10963854B2 (en) | Blockchain-based electronic bill reimbursement method, apparatus, and electronic device | |
TW201901482A (en) | Blockchain system and method of creating blockchain | |
US20190052709A1 (en) | Clustered storage system synchronization | |
US20230275771A1 (en) | Pre-execution of block chain transaction in parallel during block consensus | |
US20210263905A1 (en) | Blockchain based hierarchical data storage | |
WO2022048358A1 (en) | Data processing method and device, and storage medium | |
CN111163149B (en) | Intelligent contract platform method based on block chain | |
US20200279309A1 (en) | Blockchain-based electronic bill cancellation method, apparatus, and electronic device | |
US11017307B2 (en) | Explanations generation with different cognitive values using generative adversarial networks | |
CN112258188B (en) | Processing method, device, equipment and system for block chain transaction | |
US20200286090A1 (en) | Blockchain-based reimbursement splitting | |
US10891615B1 (en) | Transaction exchange platform having streaming transaction data and microservices | |
WO2023078097A1 (en) | Blockchain attack interception method and apparatus | |
CN110879900A (en) | Data processing method and device based on block chain system | |
CN110046172A (en) | In line computation data processing method and system | |
CN111581108B (en) | Input data acquisition method and device based on business system transaction test | |
CN113506035A (en) | Method, device and equipment for determining approval process | |
US8856069B2 (en) | Combined save and validation logic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20853238 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20853238 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/08/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20853238 Country of ref document: EP Kind code of ref document: A1 |