Method and apparatus for writing service data into block chain and method for determining service subset
First Claim
1. A method for adding transaction data into a blockchain, comprising:
- obtaining a plurality of pieces of transaction data to be added into the blockchain;
assigning the plurality of pieces of transaction data into one or more transaction subsets according to one or more criteria,wherein the one or more criteria comprise;
each of the one or more transaction subsets is assigned with transaction data having at least one of;
a same transaction type or an overlapping range of data change, anddifferent transaction subsets of the one or more transaction subsets are respectively assigned with transaction data having different transaction types and having no overlapping range of data change;
wherein the assigning the plurality of pieces of transaction data into one or more transaction subsets comprises;
assigning the plurality of pieces of transaction data into one or more level I transaction subsets according to the transaction type, andfor each of the one or more level I transaction subsets, assigning transaction data that is assigned under each of the one or more level I transaction subsets into one or more level II transaction subsets according to the range of data change, wherein pieces of transaction data with the overlapping range of data change are assigned in a same level II transaction subset, and pieces of the transaction data with no overlapping range of data change are assigned into different level II transaction subsets; and
executing the one or more level II transaction subsets in parallel, and storing results of the execution into the blockchain.
3 Assignments
0 Petitions
Accused Products
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for adding transaction data into a blockchain are provided. One of the methods includes: obtaining transaction data to be added into the blockchain, assigning the transaction data into transaction subsets, and executing the transaction subsets in parallel, and storing results of the execution into the blockchain. Pieces of the transaction data having at least one of: a same transaction type or an overlapping scope of data change are assigned into a same transaction subset, and pieces of the transaction data with different transaction types and with no overlapping scope of data change are assigned into different transaction subsets.
-
Citations
12 Claims
-
1. A method for adding transaction data into a blockchain, comprising:
-
obtaining a plurality of pieces of transaction data to be added into the blockchain; assigning the plurality of pieces of transaction data into one or more transaction subsets according to one or more criteria, wherein the one or more criteria comprise; each of the one or more transaction subsets is assigned with transaction data having at least one of;
a same transaction type or an overlapping range of data change, anddifferent transaction subsets of the one or more transaction subsets are respectively assigned with transaction data having different transaction types and having no overlapping range of data change; wherein the assigning the plurality of pieces of transaction data into one or more transaction subsets comprises; assigning the plurality of pieces of transaction data into one or more level I transaction subsets according to the transaction type, and for each of the one or more level I transaction subsets, assigning transaction data that is assigned under each of the one or more level I transaction subsets into one or more level II transaction subsets according to the range of data change, wherein pieces of transaction data with the overlapping range of data change are assigned in a same level II transaction subset, and pieces of the transaction data with no overlapping range of data change are assigned into different level II transaction subsets; and executing the one or more level II transaction subsets in parallel, and storing results of the execution into the blockchain. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for adding transaction data into a blockchain, 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 the one or more processors to cause the system to perform operations comprising:
-
obtaining a plurality of pieces of transaction data to be added into the blockchain; assigning the plurality of pieces of transaction data into one or more transaction subsets according to one or more criteria, wherein the one or more criteria comprise; each of the one or more transaction subsets is assigned with transaction data having at least one of;
a same transaction type or an overlapping range of data change, anddifferent transaction subsets of the one or more transaction subsets are respectively assigned with transaction data having different transaction types and having no overlapping range of data change; wherein the assigning the plurality of pieces of transaction data into one or more transaction subsets comprises; assigning the plurality of pieces of transaction data into one or more level I transaction subsets according to the transaction type, and for each of the one or more level I transaction subsets, assigning transaction data that is assigned under each of the one or more level I transaction subsets into one or more level II transaction subsets according to the range of data change, wherein pieces of transaction data with the overlapping range of data change are assigned in a same level II transaction subset, and pieces of the transaction data with no overlapping range of data change are assigned into different level II transaction subsets; and executing the one or more level II transaction subsets in parallel, and storing results of the execution into the blockchain. - View Dependent Claims (7, 8)
-
-
9. A non-transitory computer-readable storage medium configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
-
obtaining a plurality of pieces of transaction data to be added into the blockchain; assigning the plurality of pieces of transaction data into one or more transaction subsets according to one or more criteria, wherein the one or more criteria comprise; each of the one or more transaction subsets is assigned with transaction data having at least one of;
a same transaction type or an overlapping range of data change, anddifferent transaction subsets of the one or more transaction subsets are respectively assigned with transaction data having different transaction types and having no overlapping range of data change; wherein the assigning the plurality of pieces of transaction data into one or more transaction subsets comprises; assigning the plurality of pieces of transaction data into one or more level I transaction subsets according to the transaction type, and for each of the one or more level I transaction subsets, assigning transaction data that is assigned under each of the one or more level I transaction subsets into one or more level II transaction subsets according to the range of data change, wherein pieces of transaction data with the overlapping range of data change are assigned in a same level II transaction subset, and pieces of the transaction data with no overlapping range of data change are assigned into different level II transaction subsets; and executing the one or more level II transaction subsets in parallel, and storing results of the execution into the blockchain.
-
-
10. A method for adding transaction data into a blockchain, comprising:
-
obtaining a plurality of pieces of transaction data to be added into the blockchain; assigning the plurality of pieces of transaction data into one or more transaction subsets according to one or more criteria, wherein the one or more criteria comprise; each of the one or more transaction subsets is assigned with transaction data having at least one of;
a same transaction type or an overlapping range of data change, anddifferent transaction subsets of the one or more transaction subsets are respectively assigned with transaction data having different transaction types and having no overlapping range of data change; wherein the assigning the plurality of pieces of transaction data into one or more transaction subsets comprises; assigning the plurality of pieces of transaction data into one or more level I transaction subsets according to the range of data change, and for each of the one or more level I transaction subsets, assigning transaction data that is assigned under each of the one or more level I transaction subsets into one or more level II transaction subsets according to the transaction type, wherein pieces of transaction data with the same transaction type are assigned in a same level II transaction subset, and pieces of the transaction data with the different transaction types are assigned into different level II transaction subsets; and
executing the one or more level II transaction subsets in parallel, and storing results of the execution into the blockchain. - View Dependent Claims (11, 12)
-
Specification