System and method for parallel-processing blockchain transactions
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for parallel-processing blockchain transactions are provided. One of the methods includes: obtaining a plurality of candidate transactions for adding to a blockchain; grouping the candidate transactions into one or more transaction groups; creating one or more copies of at least a portion of a data structure of a latest block of the blockchain; associating the one or more transaction groups respectively with the one or more copies of the data structure; executing the candidate transactions in each of the transaction groups and updating the associated copies of the data structure; and merging the updated copies of the data structure to obtain at least a portion of a new data structure of a new block to add to the blockchain.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 30 · Forward citations: 0.
Claims (11)
- Claim 1Independent Claim
A computer-implemented method for parallel-processing blockchain transactions, comprising: obtaining, at a blockchain node, a plurality of candidate transactions for adding to a blockchain; grouping, at the blockchain node, the candidate transactions into a plurality of transaction groups; creating, at the blockchain node, a plurality of copies of at least a portion of a state tree data structure of a newest block of the blockchain; associating, at the blockchain node, the plurality of transaction groups respectively with the plurality of copies of the state tree data structure of the newest block of the blockchain, wherein the plurality of candidate transactions in the plurality of transaction groups have not yet been added the blockchain; executing, at the blockchain node, the candidate transactions in each of the transaction groups; respectively updating, at the blockchain node, the associated copies of the state tree data structure based on the execution of the candidate transactions in each of the transaction groups; and generating, at the blockchain node, a new state root node of a new block by at least merging the updated associated copies of the state tree data structure and propagating the updates to the new state root node.
- Claim 2Depends on #1
The method of claim 1 , wherein: the plurality of transaction groups are independent transaction groups.
- Claim 3Depends on #1
The method of claim 1 , wherein grouping the candidate transactions into the plurality of transaction groups comprises: grouping two or more of the candidate transactions each involving at least one common transaction account under a same transaction group of the plurality of transaction groups.
- Claim 4Depends on #1
The method of claim 1 , wherein grouping the candidate transactions into the plurality of transaction groups comprises: grouping two or more of the candidate transactions that do not involve any common transaction account under different transaction groups of the plurality of transaction groups.
- Claim 5Depends on #1
The method of claim 1 , wherein: the state tree data structure comprises a Merkle Patricia tree comprising a single state root node stored in the newest block and a plurality of intermediate nodes and leaf nodes not stored in the newest block.
- Claim 6Depends on #1
The method of claim 1 , wherein executing the candidate transactions in each of the transaction groups and updating the associated copies of the state tree data structure comprises: executing the candidate transactions in each of the transaction groups and updating the associated copies of the state tree data structure in parallel.
- Claim 7Depends on #1
The method of claim 1 , wherein executing the candidate transactions in each of the transaction groups comprises: executing the candidate transactions in each of the transaction groups by a multi-core processor.
- Claim 8Depends on #1
The method of claim 1 , wherein updating the associated copies of the state tree data structure comprises at least one of: updating a balance of a transaction account in one of the associated copies of the state tree data structure; removing the transaction account; or adding a new transaction account.
- Claim 9Depends on #1
The method of claim 1 , wherein merging the updated copies of the state tree data structure comprises: updating at least the portion of the state tree data structure of the newest block of the blockchain by combining and incorporating updates made in the updated copies of the state tree data structure.
- Claim 10Depends on #1
The method of claim 1 , further comprising: adding the new block to the blockchain.
- Claim 11Independent Claim
A system for parallel-processing blockchain transactions, comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATION This application is a national phase application of International Application No. PCT/CN2019/080036, filed on Mar. 28, 2019, the contents of which are incorporated by reference in its entirety. TECHNICAL FIELD This application generally relates to methods and devices for parallel-processing blockchain transactions. BACKGROUND Blockchain combines the openness of the internet with the security of cryptography to provide a faster and safer way to verify key information and establish trust. However, the software and hardware performances of blockchain transactions still lag behind traditional distributed systems in various parameters. In current technologies, to execute a plurality of transactions, the state tree is locked for the update and unlocked after the update, and the transactions are processed serially during the update. This serial processing manner limits the TPS (transaction per second) performance of blockchain. For example, only seven bitcoin transactions can be executed every second. Therefore, it is desirable to improve blockchain system performances such as the execution efficiency for accommodating larger volumes of transactions. SUMMARY Various embodiments of this specification include, but are not limited to, systems, methods, and non-transitory computer readable media for parallel-processing blockchain transactions. In some embodiments, a computer-implemented method for parallel-processing blockchain transactions comprises: obtaining a plurality of candidate transactions for adding to a blockchain; grouping the candidate transactions into one or more transaction groups; creating one or more copies of at least a portion of a data structure of a latest block of the blockchain; associating the one or more transaction groups respectively with the one or more copies of the data structure; executing the candidate transactions in each of the transaction groups and updati
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (30)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (15)
- Communication pursuant to Article 94(3) EPC for European Application No. 19732219.1 dated Jul. 6, 2021.
- Etherem, “White Paper? Ethereum/wiki Wiki ? GitHub”, Apr. 13, 2016.
- Examination Report No. 1 for Australian Application No. 2019204722 dated Feb. 5, 2020 (5 pages).
- Examination Report No. 3 for Australian Application No. 2019204722 dated Aug. 19, 2020.
- Examination Report No. 3 for Australian Application No. 2019204722 dated Jul. 1, 2020.
- Grama et al., “Introduction to Parallel Computing, Principles of Parallel Algorithm Design”, Jan. 1, 2003.
- Leonor Frias et al., “Parallelization of Bulk Operations for STL Dictionaries,” Aug. 28, 2007, Advances inn Intelligent Data Analysis XIX, Springer International Publishing.
- Non-Final Office Action for U.S. Appl. No. 16/735,233 dated Mar. 14, 2020.
- Notice of Allowance for U.S. Appl. No. 16/735,233 dated Apr. 17, 2020.
- Office Action for Canadian Application No. 3055108 dated Feb. 19, 2020 (5 pages).
- Office Action for Canadian Application No. 3055108 dated Sep. 4, 2020.
- Office Action for Japanese Application No. 2019-553286 dated Jan. 26, 2021.
- Search Report for European Application No. 19732219.1 dated May 13, 2020.
- Search Report for Taiwanese Application No. 108145068 dated Oct. 12, 2020.
- Written Opinion of the International Searching Authority and International Search Report for International Application No. PCT/CN2019/080036, dated Dec. 27, 2019, 6 pages.