Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2021-05-04
上海简苏网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, it is precisely because of the unique characteristics of the blockchain that the simple transaction processing in reality has become very complicated in the blockchain, especially for the parallel processing of transactions, the existing transaction processing technology is not yet orderly, Safe and accurate parallel processing
[0003] Among them, when the existing technology generally processes multiple transactions in parallel, each account can only transfer or receive one transaction in one block, which is not only too restrictive for users, but also leads to low efficiency of transaction processing. This requires locking the account. When multiple threads process transactions involving the same account, each thread can lock the account through the account lock of the account when executing the transaction processing, so as to avoid other threads in parallel processing. Simultaneous processing of the account, causing confusion in transaction processing
[0004] However, there are still problems. When multiple transactions involved in an account require multiple threads to be executed in an orderly manner, the above method obviously cannot be executed in an orderly manner. At the same time, when multiple transactions in one thread involve the same account, After the thread executes one of the transactions, it is time to execute the remaining transactions involving the account in the current thread, and there will be parallel processing problems due to the transaction processing of other threads.

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
  • Block chain transaction parallel processing method and system
  • Block chain transaction parallel processing method and system
  • Block chain transaction parallel processing method and system

Examples

Experimental program
Comparison scheme
Effect test

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.

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 block chain transaction parallel processing method and system, and the method comprises the steps: S1, dividing the transactions in a block into a plurality of groups, pressing the ordered locks of all accounts involved in the transactions in each group into the scheduling information of the respective thread, and enabling the ordered locks to be provided with a plurality of thread identifiers, wherein the thread identifier is used for identifying threads which need to execute transactions on the account and priorities of processing among the threads; S2, according to the priority of the thread identifier in the ordered lock of each account, each thread executing transaction of each group in parallel, the thread corresponding to the thread identifier with the highest priority in the ordered lock of each account preferentially executing transaction related to the account, and after the transaction is completed, the priority of the thread identifier in the ordered lock being updated, and the priority of the thread identifier in the ordered lock being updated. This is repeated until each group of transactions is performed. According to the method and the device, the sequence problem of multi-thread parallel processing of multiple transactions related to multiple accounts is solved, and the orderliness of parallel processing is guaranteed, so that the efficiency of parallel processing is guaranteed.

Description

technical field [0001] The invention belongs to the technical field of blockchain, and in particular relates to a method and system for parallel processing of blockchain transactions. Background technique [0002] Based on its characteristics of unforgeability, traceability, traceability, openness and transparency, and collective maintenance, blockchain technology has realized a variety of functions in real life, not only guaranteed safety and reliability, but also greatly facilitated every aspect of real life. At the same time, it is precisely because of the unique characteristics of the blockchain that the simple transaction processing in reality has become very complicated in the blockchain, especially for the parallel processing of transactions, the existing transaction processing technology is not yet orderly, Safe and accurate parallel processing. [0003] Among them, when the existing technology generally processes multiple transactions in parallel, each account can...

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): G06F9/48G06F9/38G06F9/50G06F9/54G06Q40/04
CPCG06F9/4881G06F9/38G06F9/5027G06F9/546G06Q40/04G06F2209/5021G06F2209/484G06F2209/548Y02D10/00
Inventor 丁有振王顺利
Owner 上海简苏网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products