IP Library Granted Patent US 11,010,369
Granted Patent B2
US 11,010,369 · App. 15/935,209 · Granted May 18, 2021

Method, apparatus, and system for blockchain consensus

Inventor: Weiming Zhuang (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
G06F16/2379G06F9/466G06F9/5061G06F16/2365G06F16/285G06F21/602H04L9/0637H04L67/1012H04L67/32
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,010,369
App. No.
15/935,209
Granted
May 18, 2021
Kind
B2
Abstract

A blockchain consensus method may comprise: acquiring transaction data; and distributing, according to a preset distribution rule, the transaction data to at least one consensus unit in a consensus unit set, causing the at least one consensus unit to perform consensus processing on the distributed transaction data.

Claims (63)

1. A blockchain consensus method, comprising:

acquiring transaction data;

determining a quantity of resources required to process the transaction data;

determining a quantity of idle resources of each consensus unit in a consensus unit set in a blockchain network;

determining, from the consensus unit set, a number of at least one consensus unit having the quantity of idle resources greater than the quantity of resources required to process the transaction data;

determining, from the at least one consensus unit, one or more consensus units to distribute the transaction data to by performing one of the following operations:

in response to the number being greater than a set value, determining in a polling manner one or more consensus units in need of a consensus transaction as the determined one or more consensus units, and

in response to the number being less than the set value, determining according to a load balancing rule, one or more consensus units having a load capacity below a set condition as the determined one or more consensus units; and

distributing the transaction data to the determined one or more consensus units, causing the determined one or more consensus units to perform consensus processing on the distributed transaction data.

2. The method according to claim 1 , further comprising: determining, according to a number of sets of the transaction data, in a random manner, a matching number of the at least one consensus unit as the determined one or more consensus units; and wherein:

distributing the transaction data to the determined one or more consensus units, comprises: distributing the sets of transaction data to the determined one or more consensus units, respectively.

3. The method according to claim 1 , wherein determining in the polling manner, one or more consensus units in need of the consensus transaction, comprises: sequentially polling each of the at least one consensus unit to determine which of the at least one consensus unit is in need of the consensus transaction.

4. The method according to claim 1 , wherein determining according to the load balancing rule, one or more consensus units having a load capacity below a set condition, comprises: determining a load capacity of each of the at least one consensus unit.

5. The method according to claim 1 , further comprising:

determining a working state of each consensus unit in the consensus unit set, the working state comprising at least one of a normal state or an abnormal state; and

determining consensus units from consensus units with the working state being a normal state as the determined one or more consensus units.

6. The method according to claim 1 , wherein the transaction data comprises transaction data with no sequence requirements.

7. The method according to claim 1 , wherein:

the transaction data comprises multiple sets of transaction data;

the determined one or more consensus units comprise at least two consensus units;

the method further comprises: grouping the multiple sets of transaction data to obtain one or more transaction data groups; and

distributing the transaction data to the determined one or more consensus units, comprises: distributing the transaction data groups to different consensus units of the at least two consensus units.

8. The method of claim 1 , further comprising:

receiving consensus results from the determined one or more consensus units; and

storing the consensus results into one or more blocks of the blockchain network according to time stamps of the consensus results.

9. The method according to claim 8 , wherein storing the consensus results into the one or more blocks of the blockchain network comprises:

storing the consensus results into blocks of nodes in the blockchain network corresponding to the determined one or more consensus units.

10. A blockchain consensus system, comprising: a distribution unit and a consensus unit set in a blockchain network, wherein:

the distribution unit is configured to:

acquire transaction data;

determine a quantity of resources required to process the transaction data;

determine a quantity of idle resources of each consensus unit in a consensus unit set in a blockchain network;

determine, from the consensus unit set, a number of at least one consensus unit having the quantity of idle resources greater than the quantity of resources required to process the transaction data;

determine, from the at least one consensus unit, one or more consensus units to distribute the transaction data to by performing one of the following operations:

in response to the number being greater than a set value, determining in a polling manner one or more consensus units in need of a consensus transaction as the determined one or more consensus units, and

in response to the number being less than the set value, determining according to a load balancing rule, one or more consensus units having a load capacity below a set condition as the determined one or more consensus units; and

distribute the transaction data to the determined one or more consensus units; and

the determined one or more consensus units are configured to perform consensus processing on the distributed transaction data.

11. The consensus system according to claim 10 , wherein the consensus system further comprises: a storage node configured to receive consensus results from the determined one or more consensus units and sequentially store, according to time stamps of the consensus results, the consensus results.

12. A blockchain consensus apparatus, comprising a processor and a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the blockchain consensus apparatus to perform a method, the method comprising:

acquiring transaction data;

determining a quantity of resources required to process the transaction data;

determining a quantity of idle resources of each consensus unit in a consensus unit set in a blockchain network;

determining, from the consensus unit set, a number of at least one consensus unit having the quantity of idle resources greater than the quantity of resources required to process the transaction data;

determining, from the at least one consensus unit, one or more consensus units to distribute the transaction data to by performing one of the following operations:

in response to the number being greater than a set value, determining in a polling manner one or more consensus units in need of a consensus transaction as the determined one or more consensus units, and

in response to the number being less than the set value, determining according to a load balancing rule, one or more consensus units having a load capacity below a set condition as the determined one or more consensus units; and

distributing the transaction data to the determined one or more consensus units, causing the determined one or more consensus units to perform consensus processing on the distributed transaction data.

13. The apparatus according to claim 12 , the method further comprising: determining, according to a number of sets of the transaction data, in a random manner, a matching number of the at least one consensus unit as the determined one or more consensus units; and wherein:

distributing the transaction data to the determined one or more consensus units, comprises: distributing the sets of transaction data to the determined one or more consensus units, respectively.

14. The apparatus according to claim 12 , wherein determining in the polling manner, one or more consensus units in need of the consensus transaction, comprises: sequentially polling each of the at least one consensus unit to determine which of the at least one consensus unit is in need of the consensus transaction.

15. The apparatus according to claim 12 , wherein determining according to the load balancing rule, one or more consensus units having a load capacity below a set condition, comprises: determining a load capacity of each of the at least one consensus unit.

16. The apparatus according to claim 12 , the method further comprising:

determining a working state of each consensus unit in the consensus unit set, the working state comprising at least one of a normal state or an abnormal state; and

determining consensus units from consensus units with the working state being a normal state as the determined one or more consensus units.

17. The apparatus according to claim 12 , wherein:

the transaction data comprises multiple sets of transaction data;

the determined one or more consensus units comprise at least two consensus units;

the method further comprises: grouping the multiple sets of transaction data to obtain one or more transaction data groups; and

distributing the transaction data to the determined one or more consensus units, comprises: distributing the transaction data groups to different consensus units of the at least two consensus units.

18. The apparatus of claim 12 , wherein the method further comprises:

receiving consensus results from the determined one or more consensus units; and

storing, according to time stamps of the consensus results, the consensus results into one or more blocks of the blockchain network, wherein the storing the consensus results into the one or more blocks of the blockchain network comprises: storing the consensus results into blocks of nodes in the blockchain network corresponding to the determined one or more consensus units.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 24, 2018
From: ZHUANG, WEIMING
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 046013/0376 →