Method and device for executing transaction in block chain

A blockchain and transaction technology, applied in the blockchain field, can solve problems such as variables that cannot be executed in parallel and cannot be accessed predictably, and achieve the effects of improving utilization, improving transaction execution speed, and shortening block production time.

Active Publication Date: 2021-12-03
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the variables accessed cannot be predicted before the transaction calling the smart contract is executed, it usually cannot be executed in parallel

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments in this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.

[0024] figure 1 It is a schematic diagram of the process of executing transactions in the blockchain provided by related technologies.

[0025] Such as figure 1 As shown, generally speaking, in related technologies, when executing transactions in the blockchain, it is done block by block. For example, the transaction execution process of block N is completed...

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 invention provides a method and a device for executing a transaction in a block chain, which are applied to a block chain node. The method comprises: receiving a plurality of first transactions belonging to a first block, and pre-executing the plurality of first transactions to obtain a pre-execution read-write set of the plurality of first transactions, wherein the pre-execution read-write set is used for grouping the plurality of first transactions; carrying out consensus on second blocks in parallel in the pre-execution process of the multiple first transactions; the second block is a block before the first block.

Description

technical field [0001] One or more embodiments of this specification relate to the technical field of blockchain, and in particular to a method and device for executing transactions in blockchain. Background technique [0002] Blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. In the blockchain system, the data blocks are combined into a chained data structure in a sequentially connected manner in chronological order, and the data blocks are cryptographically guaranteed to be tamper-proof and unforgeable. When a blockchain node executes multiple transactions in a block, it can speed up transaction execution by executing transactions in parallel. However, since the variables accessed cannot be predicted before the transactions calling smart contracts are executed, they usually cannot be executed in parallel. Contents of the invention [0003] One or mo...

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): G06Q40/04G06F21/64
CPCG06Q40/04G06F21/64
Inventor 谢桂鲁邓福喜
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products