IP Library Granted Patent US 10,785,039
Granted Patent B2
US 10,785,039 · App. 16/736,644 · Granted Sep 22, 2020

Blockchain consensus method and device

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 10,785,039
App. No.
16/736,644
Granted
Sep 22, 2020
Kind
B2
Abstract

This specification describes techniques for performing blockchain consensus. An example method performed by a first node in a blockchain includes: receiving first service data; determining a corresponding handling time of the first service data; storing the first service data including the corresponding handling time at a cache, in which the cache stores multiple pieces of additional service data, and in which each piece of additional service data is associated with a respective handling time; determining whether a consensus needs to be performed on at least two pieces of service data; in response to determining that the consensus needs to be performed, selecting the at least two pieces of service data according to a sequence that is based on handling times associated with the at least two pieces of service data; and performing the consensus on the more than one pieces of service data according to the sequence.

Claims (40)

1. A blockchain consensus method, comprising:

receiving, by a node in a blockchain, first service data;

determining a handling time of the first service data;

storing, by the node, the first service data that comprises the handling time;

in response to determining that service data consensus needs to be performed, selecting, by the node based on the handling time, a plurality of pieces of service data on which consensus is to be performed;

determining a block capacity of a new block of a blockchain based on a consensus mechanism of the blockchain;

computing a digest of each of the plurality of pieces of service data;

selecting particular service data from the plurality of pieces of service data on which consensus is to be performed, wherein an occupation space of the particular service data and a digest of the particular service data satisfies the block capacity of the new block in which the particular service data and the digest are to be stored; and

performing consensus on the selected particular service data on which consensus is to be performed.

2. The method according to claim 1 , wherein determining the handling time of the first service data comprises:

determining a time at which the first service data is received, and determining the time as the handling time of the first service data; or

processing the first service data at a time at which the first service data is received, to obtain a processing result, and determining a generation time of the processing result as the handling time of the first service data.

3. The method according to claim 1 , wherein the method further comprises, after determining the handling time of the first service data:

broadcasting the first service data that comprises the handling time to another node in the blockchain.

4. The method according to claim 1 , wherein receiving, by the node in the blockchain, the first service data and determining the handling time of the first service data comprises:

receiving, by the node in a broadcast way, the first service data sent by another node in the blockchain; and

determining, by the node, a handling time comprised in the first service data as the handling time of the first service data.

5. The method according to claim 1 , wherein selecting, by the node based on the handling time, a plurality of pieces of service data on which consensus is to be performed comprises:

selecting, based on a time sequence of handling times, the plurality of pieces of service data on which consensus is to be performed.

6. A blockchain consensus apparatus, comprising:

one or more processors; and

one or more computer-readable memories coupled to the one or more processors and having instructions stored thereon that are executable by the one or more processors to perform operations comprising:

receiving first service data;

determining a handling time of the first service data;

storing the first service data that comprises the handling time;

selecting, based on the handling time in response to determining that service data consensus needs to be performed, a plurality of pieces of service data on which consensus is to be performed;

determining a block capacity of a new block of a blockchain based on a consensus mechanism of the blockchain;

computing a digest of each of the plurality of pieces of service data;

selecting particular service data from the plurality of pieces of service data on which consensus is to be performed, wherein an occupation space of the particular service data and a digest of the particular service data satisfies the block capacity of the new block in which the particular service data and the digest are to be stored; and

performing consensus on the selected particular service data on which consensus is to be performed.

7. The apparatus according to claim 6 , wherein determining the handling time of the first service data comprises:

determining a time at which the first service data is received, and determining the time as the handling time of the first service data; or

processing the first service data at a time at which the first service data is received, to obtain a processing result, and determining a generation time of the processing result as the handling time of the first service data.

8. The apparatus according to claim 6 , wherein the operations further comprises:

broadcasting the first service data that comprises the handling time to another node in a blockchain after the handling time of the first service data is determined.

9. The apparatus according to claim 6 , wherein receiving the first service data and determining the handling time of the first service data comprises:

receiving, in a broadcast way, the first service data sent by another node in a blockchain; and

determining a handling time comprised in the first service data as the handling time of the first service data.

10. The apparatus according to claim 6 , wherein selecting, based on the handling time, the plurality of pieces of service data on which consensus is to be performed, comprising:

selecting, based on a time sequence of handling times, the plurality of pieces of service data on which consensus is to be performed.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 31, 2020
From: WU, HAO
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 051680/0015 →