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

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

Example Embodiment

[0041] In order to make those skilled in the art better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments of the present specification, but not all of the embodiments. 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 to which the embodiments of this specification are applied is shown. like figure 1 , the blockchain includes, for example, a master node 1, a slave node 2 to a slave node 5, a total of 6 nodes. The connections between nodes schematically represent P2P (Peer to Peer, peer-to-peer) ...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products