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

Method for executing transaction in block chain, block chain and main node

A master node and blockchain technology, applied in the blockchain field, can solve problems such as unpredictable access variables and parallel execution, and achieve the effect of improving transaction execution speed

Active Publication Date: 2021-12-03
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF5 Cites 0 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 for executing transaction in block chain, block chain and main node
  • Method for executing transaction in block chain, block chain and main node
  • Method for executing transaction in block chain, block chain and main node

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] 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.

[0042] figure 1 A block chain architecture diagram applied in the embodiment of this specification is shown. Such as figure 1 In the block chain, for example, there are 6 nodes including master node 1, slave node 2 to slave node 5. The connection between the nodes schematically represents a P2P (Peer to Peer, point-to-point) connection. These nodes store a ...

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 discloses a method for executing transaction in a block chain, the block chain and a main node. The block chain comprises a master node and slave nodes, and the method comprises the steps that the master node pre-executes each received transaction based on a pre-execution state set to obtain a pre-execution read-write set of each transaction; after pre-executing each transaction, the main node serially processes each transaction as follows: whether a pre-execution read set of the transaction conflicts with the pre-execution state set or not is determined, and the pre-execution state set and the pre-execution transaction set are updated in the case of determining that no conflict exists; the master node sends a plurality of transactions arranged in sequence in the pre-execution transaction set, the arrangement sequence of the transactions in the pre-execution transaction set and a pre-execution read-write set of the transactions to the slave node; and the slave node executes the plurality of transactions according to the arrangement sequence of the plurality of transactions and the pre-execution read-write set of each transaction.

Description

technical field [0001] The embodiment of this specification relates to the technical field of block chain, and more specifically, relates to a method for executing transactions in the block chain, the block chain and the master node. 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...

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
IPC IPC(8): G06Q20/38
CPCG06Q20/3829
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