Method for executing transactions in block chain, block chain, master node and slave 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 transactions in block chain, block chain, master node and slave node
  • Method for executing transactions in block chain, block chain, master node and slave node
  • Method for executing transactions in block chain, block chain, master node and slave node

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0023] The following embodiments will be described in conjunction with the accompanying drawings of the present specification.

[0024] figure 1 Shows a block schematic diagram of the chain of the present embodiment is applied in the embodiment description. like figure 1 , The block contains a main chain, for example, node 1 from node 2 to node 6 from the total of six nodes. Connection schematic representations P2P (Peer to Peer, point to point) connection between nodes. The full amount of the books are stored on those nodes that store all state and block all accounts. Wherein the status of each node in the chain block generated in the same state as the chain block by performing the same transaction, each node in the same memory block in the chain database. The difference is, the master node may be responsible for receiving a transaction from the client, and to initiate a consensus proposal from each node, a plurality of the transactions, for example, a consensus proposal block (...

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, a block chain master node and a block chain slave node, and the method comprises the steps: the master node pre-executes a plurality of received transactions, and obtains a pre-execution read-write set of each transaction; the master node sends a plurality of transactions and a pre-execution read-write set of each transaction to a slave node; the slave node groups the plurality of transactions based on the pre-execution read-write set of each transaction; 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
IPC IPC(8): G06Q20/38G06Q20/40
CPCG06Q20/3829G06Q20/401
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