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

Method and device for processing transaction in block chain

A blockchain and transaction technology, applied in the blockchain field, can solve problems such as reducing transaction processing efficiency, unusability, and not considering read and write conflicts, and achieve the effect of improving transaction processing efficiency and avoiding uncertainty

Active Publication Date: 2021-01-08
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this implementation scheme, the speculative execution of the transaction does not consider the read and write conflicts with other transactions. When the variables accessed by different transactions do not overlap, this implementation scheme may have better results, but when different transactions have conflicting When the reading and writing of variables conflict, the execution result of the speculative execution will not be available, which reduces the transaction processing efficiency

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 device for processing transaction in block chain
  • Method and device for processing transaction in block chain
  • Method and device for processing transaction in block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0037] figure 1 A schematic diagram showing transaction propagation, block entry and execution according to one embodiment. First of all, there are several nodes in the blockchain network, which can communicate with each other. Among the nodes in the blockchain network, at least some nodes are nodes with bookkeeping capabilities. The bookkeeping node can package the collected transactions into a predetermined block form to form a new block in the blockchain.

[0038] Assume that Bob, a bookkeeping node in the network, obtains a transaction Tx. The transaction Tx may be a transaction sent by a user terminal connected to the blockchain of the node, or the transaction Tx may also be a transaction forwarded by another node Alice. Moreover, the transaction Tx can be a normal transfer transaction, a transaction for creating a smart contract, or a transaction for calling...

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 provides a method and a device for processing a transaction in a block chain, and the method is executed by a block chain node, and comprises the steps: obtaining a first transaction waiting for speculative execution, wherein the speculative execution is the pre-execution of the transaction before the consensus of the transaction is finished; in a case where it is determined that a second transaction being commissioned is accessing a variable requested to be accessed in the first transaction first, performing commissioning execution of the first transaction after commissioning execution of the second transaction is completed.

Description

technical field [0001] The embodiment of this specification relates to the technical field of block chain, and more specifically, relates to a method and device for processing transactions in block chain. Background technique [0002] In the blockchain, the transaction is usually executed after the transaction is consensused. Since the transaction consensus takes more time, the transaction processing efficiency is low. In order to improve the efficiency of transaction processing, in the prior art, the transaction is speculatively executed before the consensus and the execution result of the transaction is saved. The execution result generated is not submitted immediately, but is submitted only when it is determined to be available when the transaction is officially executed. When the transaction is formally executed after the consensus on the transaction, if it is determined that the execution result of the speculative execution is valid and available, the execution result o...

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): G06F9/52G06F9/50G06Q20/40G06Q20/38
CPCG06F9/524G06F9/5038G06Q20/405G06Q20/389
Inventor 刘晓建
Owner ALIPAY (HANGZHOU) INFORMATION TECH 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