Transaction processing method and device based on a block chain and electronic equipment

A transaction processing and blockchain technology, applied in the field of data processing, can solve problems such as inconsistent version numbers, outdated version numbers, and invalid transactions, and achieve the effects of reducing the probability of invalid transactions, improving throughput, and avoiding concurrent execution

Pending Publication Date: 2021-08-06
UNIV OF SCI & TECH OF CHINA
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Hyperledger Fabric is a platform that provides distributed ledger solutions. On this platform, transactions are executed concurrently. For example, two transactions read and write the same ledger data. The first transaction updates the version of the key when it is submitted. The version number of the second transaction was found to be outdated during the final verification and submission stage, which was inconsistent with the version number of the state database, causing the second transaction to be regarded as an invalid transaction
As a result, due to the concurrent execution mechanism of transactions, transaction conflicts will occur, which will lead to a large number of invalid transactions, which not only wastes system resources, but also affects user experience

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
  • Transaction processing method and device based on a block chain and electronic equipment
  • Transaction processing method and device based on a block chain and electronic equipment
  • Transaction processing method and device based on a block chain and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach 1

[0078] S201: Read the second target transaction from the waiting queue database according to a preset time period, and detect whether there is a transaction in the preset database that conflicts with the read set of the second target transaction;

[0079] Wherein, the second target transaction is any transaction in the waiting queue, and the time when the second target transaction is stored in the waiting queue is the starting point of the preset time period of the second target transaction;

[0080] In this embodiment, after the pre-sorting node detects that there is a transaction that conflicts with a certain transaction in the preset database, it will store the conflicting transaction in the waiting queue. starting point, and, starting from the starting point, when a preset time period is reached, the transaction is read, and it is detected whether there is a transaction in the preset database that conflicts with the read set of the transaction.

[0081] In the first embodi...

Embodiment approach 2

[0085] S301: Read each transaction sequentially from the waiting queue according to the preset time period, and sequentially detect the conflict of each transaction in the waiting queue;

[0086] S302: If it is detected that there is no transaction in the preset database that conflicts with the read set of the second target transaction, send the second target transaction to the endorsement node, so that the endorsement node executes the second target transaction A target transaction; the second target transaction is any transaction in the database.

[0087] In the second embodiment, the preset time period corresponding to each transaction in the waiting queue is the same, and the starting point of the time period has nothing to do with the transaction. Every preset time period, the transactions in the waiting queue are sequentially collided detection.

Embodiment approach 3

[0089] S401: Read the first N transactions sequentially from the waiting queue according to the preset time period, and sequentially detect the conflicts of the first N transactions;

[0090] S402: If it is detected that there is no transaction in the preset database that conflicts with the reading set of the second target transaction, send the second target transaction to the endorsement node, so that the endorsement node executes the second target transaction. A target transaction; the second target transaction is any one of the previous N transactions.

[0091] In this embodiment, in order to improve the performance of the system operation and avoid invalid detection, in the third embodiment, only the first N transactions in the waiting queue are detected each time, avoiding the invalid detection of transactions with a later storage time .

[0092] In this embodiment, before the transaction is executed, the conflict of the transaction is detected by the pre-sorting node. I...

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 transaction processing method and device based on a block chain and electronic equipment, and the method comprises the steps: detecting the conflict condition of a transaction through a pre-sorting node before the transaction is executed, if there is a write set conflicting with a read set of the transaction in a preset database, indicating that the transaction conflicting with the transaction exists, storing the transaction in a waiting queue, and if there is no transaction conflicting with the transaction in the preset database, sending the transaction to the endorsement node so that the endorsement node can execute the transaction. Therefore, the conflict condition of the transactions is detected through the pre-sorted nodes, concurrent execution of the transactions with conflicts is avoided, the probability of generating invalid transactions is reduced, and the throughput of effective transactions of the Fabric system is improved.

Description

technical field [0001] The present invention relates to the field of data processing, in particular to a block chain-based transaction processing method, device and electronic equipment. Background technique [0002] Blockchain is the underlying supporting technology of cryptocurrency represented by Bitcoin. Due to its characteristics of decentralization and non-tampering, it has attracted widespread attention. The essence of blockchain technology is a distributed ledger technology built on a peer-to-peer network. [0003] Hyperledger Fabric is a platform that provides distributed ledger solutions. On this platform, transactions are executed concurrently. For example, two transactions read and write the same ledger data. The first transaction updates the version of the key when it is submitted. The version number of the second transaction was found to be outdated during the final verification and submission stage, which was inconsistent with the version number of the state d...

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): G06F16/2458G06Q40/04
CPCG06F16/2471G06Q40/04
Inventor 李京王盛姣熊航王硕
Owner UNIV OF SCI & TECH OF CHINA
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