Method for executing transaction in block chain, block chain, master node and slave node

A master node, blockchain technology, applied in the blockchain field, can solve the problems of 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 PDF6 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, master node and slave node
  • Method for executing transaction in block chain, block chain, master node and slave node
  • Method for executing transaction in block chain, block chain, master node and slave node

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[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 full amount of books, that is, store the status of all blocks and all accounts. Wherein, each node in the blockchain generates the same state in the blockchain by executing the same transaction, and each node in the blockchain stores the same state database. The difference is that the master node 1 can be responsible for receiving transactions from the client, and initiate a consensus proposal to each slave node. The consensus proposal includes, for example, multiple transactions and each Information such as t...

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 for executing transactions in a block chain, the block chain, a master node and a slave node, and the method comprises the steps: the master node pre-executes a plurality of received transactions, and a pre-execution read-write set of each transaction is obtained; the master node groups the plurality of transactions based on the pre-execution read-write set; the master node sends the plurality of transactions, the grouping result of the plurality of transactions and the pre-execution read-write set of each transaction to a slave node; and the slave node executes the plurality of transactions in parallel based on the grouping result of the plurality of transactions.

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, a master node and a slave 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...

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): G06Q20/40G06Q20/38
CPCG06Q20/401G06Q20/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