Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for concurrently executing transactions in blockchain

A block chain and transaction technology, applied in the field of block chain, can solve problems such as affecting results, achieve the effect of speeding up processing, improving processing performance, and avoiding transaction conflicts

Active Publication Date: 2021-07-23
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And if there is a dependency between two transactions executed concurrently, the concurrent execution will affect the final result

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
  • Method and apparatus for concurrently executing transactions in blockchain
  • Method and apparatus for concurrently executing transactions in blockchain
  • Method and apparatus for concurrently executing transactions in blockchain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Embodiments of this specification will be described below with reference to the accompanying drawings.

[0046] figure 1 A schematic diagram of a blockchain system according to an embodiment of this specification is shown. like figure 1 As shown, the system includes a plurality of nodes (six nodes are schematically shown in the figure) that constitute a block chain, and these nodes are connected in pairs, including node 11, node 12 and node 13, for example. As known to those skilled in the art, in the block chain, some nodes will collect multiple transactions in the block chain and put them into the transaction pool and compete for bookkeeping rights. For example, node 11 in the figure becomes a billing node by acquiring the billing right. After node 11 becomes an accounting node, it will execute multiple transactions in its transaction pool, and package the multiple transactions into blocks and send them to other nodes, such as node 12. Nodes 12 will validate the b...

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 this specification provides a method and device for concurrently executing multiple transactions in the blockchain, wherein the multiple transactions have a predetermined order of submission, including the first transaction, and the method is in the blockchain Executed by the first node of the first node, multiple write versions corresponding to the first variable are currently recorded in the shared memory of the first node, and each write version corresponds to the writing of the first variable by one of the multiple transactions The execution of the operation, the write version includes the transaction number corresponding to the write operation and the write value of the write operation, the method includes: determining whether the first write version exists in the multiple write versions, the The first write version corresponds to the write operation of the first variable by the previous transaction, wherein the previous transaction is a transaction with a transaction number smaller than the first transaction among the multiple transactions, wherein the transaction The numbering corresponds to a submission sequence of the transactions; and based on the determination result, performing a read operation on the first variable in the first transaction.

Description

technical field [0001] The embodiment of this specification relates to the field of blockchain technology, and more specifically, to a method and device for concurrently executing multiple transactions in a blockchain. Background technique [0002] Blockchain technology is built on a peer-to-peer (P2P) network, uses a chained data structure to verify and store data, uses a distributed node consensus algorithm to generate and update data, and uses cryptography to ensure the security of data transmission and access. A new distributed infrastructure and computing paradigm that uses smart contracts composed of automated script code to program and manipulate data. Blockchain technology, also known as distributed ledger technology, is a decentralized distributed database technology, which is characterized by decentralization, openness and transparency, non-tamperable and trustworthy. Every piece of data in the blockchain will be broadcast to the blockchain nodes of the entire net...

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 Patents(China)
IPC IPC(8): G06Q40/04G06Q20/38
CPCG06Q20/3829G06Q40/04G06Q20/38G06Q40/00
Inventor 张兆勇俞本权
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD