Block chain transaction parallel processing method and system
A parallel processing and blockchain technology, applied in the blockchain field, can solve the problems of chaotic transaction processing, too large restrictions, and inability to achieve orderly execution
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0042] To solve the above problems, see figure 1 , the present embodiment proposes a method for parallel processing of blockchain transactions, comprising the following steps:
[0043] S1: Divide the transactions in the block into several groups, and press the ordered locks of all accounts involved in the transactions in each group into the scheduling information of their respective threads. Among them, the ordered locks have several thread IDs, and the thread IDs Used to identify the threads that need to perform transactions on the account, and the priority of processing between threads;
[0044] S2: According to the priority of the thread identification in the ordered lock of each account, each thread executes the transactions of each group in parallel. Among them, the thread corresponding to the thread identification with the highest priority in the ordered lock of each account will be executed first. Account transactions, and after the transaction is completed, update the...
no. 2 example
[0063] see image 3 , the present invention proposes a block chain transaction parallel processing system based on the first embodiment, including:
[0064] The preprocessing module 1 is used to divide the transactions in the block into several groups, and press the ordered locks of all accounts involved in the transactions in each group into the scheduling information of the respective threads. Among them, the ordered locks have several Thread ID, which is used to identify the thread that needs to perform transactions on the account, and the priority of processing between threads;
[0065] Parallel processing module 2 is used to execute each group of transactions in parallel according to the priority of the thread ID in the ordered lock of each account. Among them, the thread ID corresponding to the highest priority in the ordered lock of each account The thread executes the transaction involving the account first, and after the transaction is completed, updates the priority...
no. 3 example
[0085] The present invention also proposes a computer device, including a memory and a processor, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor performs the above-mentioned A block chain transaction parallel processing method mentioned in an embodiment.
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