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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com