IP Library Granted Patent US 10,985,923
Granted Patent B2
US 10,985,923 · App. 16/295,771 · Granted Apr 20, 2021

Consensus verification method, apparatus, and device

Inventor: Xinying Yang (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04L9/3239G06Q20/401G06Q20/403H04L9/0618H04L67/1042H04L2209/38H04L2209/56
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,985,923
App. No.
16/295,771
Granted
Apr 20, 2021
Kind
B2
Abstract

Implementations of the present specification disclose a consensus verification method, apparatus, and device. In the implementations of the present specification, for each piece of service data, if first consensus verification on the service data fails, a first node determines whether the service data satisfies a predetermined retry condition instead of directly considering the service data to be invalid. If the predetermined retry condition is satisfied, then the service data is stored as service data to be retried. The first node can perform the first consensus verification on the service data to be retried in response to determining that a predetermined retry execution condition is triggered.

Claims (86)

1. A computer-implemented method, comprising:

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

performing first consensus verification on the service data;

in response to determining that the first consensus verification on the service data fails,

determining that the service data satisfies a predetermined retry condition;

storing the service data as service data to be retried in response to determining that the predetermined retry condition is satisfied;

after storing the service data as service data to be retried,

determining that a predetermined retry execution condition is triggered; and

performing the first consensus verification on the service data to be retried in response to determining that the predetermined retry execution condition is triggered.

2. The computer-implemented method of claim 1 , wherein determining that the service data satisfies the predetermined retry condition comprises:

determining that the first consensus verification on the service data fails based on a predetermined reason.

3. The computer-implemented method of claim 2 , wherein the service data comprises service data of a transfer service.

4. The computer-implemented method of claim 3 , wherein the predetermined reason comprises:

an asset balance of a transfer is insufficient.

5. The computer-implemented method of claim 1 , wherein a block of the blockchain comprises a predetermined maximum capacity.

6. The computer-implemented method of claim 5 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a difference between the predetermined maximum capacity and a total data amount of service data selected from a service queue to be validated to generate a next block falls within a first specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the difference falls within the first specified value range.

7. The computer-implemented method of claim 5 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a time interval between a current moment and an end moment of a current period falls within a second specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the time interval falls within the second specified value range.

8. The computer-implemented method of claim 1 , wherein storing the service data as service data to be retried comprises:

adding the service data to a queue tail of a precreated service queue to be retried as the service data to be retried.

9. The computer-implemented method of claim 8 , wherein performing the first consensus verification on the service data to be retried comprises:

sequentially selecting, in a front-to-back order, at least one piece of service data to be retried from a service queue to be retried; and

performing the first consensus verification on the selected service data to be retried.

10. The computer-implemented method of claim 1 , wherein the performing the first consensus verification on the service data to be retried comprises:

performing the first consensus verification on the service data to be retried until the first consensus verification on the service data to be retried succeeds or until a number of times of performing the first consensus verification on the service data to be retried reaches a specified value.

11. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

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

performing first consensus verification on the service data;

in response to determining that the first consensus verification on the service data fails,

determining that the service data satisfies a predetermined retry condition;

storing the service data as service data to be retried in response to determining that the predetermined retry condition is satisfied;

after storing the service data as service data to be retried,

determining that a predetermined retry execution condition is triggered; and

performing the first consensus verification on the service data to be retried in response to determining that the predetermined retry execution condition is triggered.

12. The non-transitory, computer-readable medium of claim 11 , wherein determining whether the service data satisfies the predetermined retry condition comprises:

determining, based on a reason why the first consensus verification on the service data fails, whether the service data satisfies the predetermined retry condition.

13. The non-transitory, computer-readable medium of claim 12 , wherein the service data comprises service data of a transfer service.

14. The non-transitory, computer-readable medium of claim 13 , wherein the predetermined reason comprises:

an asset balance of a transfer is insufficient.

15. The non-transitory, computer-readable medium of claim 11 , wherein a block of the blockchain comprises a predetermined maximum capacity.

16. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

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

performing first consensus verification on the service data; and

in response to determining that the first consensus verification on the service data fails,

determining that the service data satisfies a predetermined retry condition;

storing the service data as service data to be retried in response to determining that the predetermined retry condition is satisfied;

after storing the service data as service data to be retried,

determining that a predetermined retry execution condition is triggered; and

performing the first consensus verification on the service data to be retried in response to determining that the predetermined retry execution condition is triggered.

17. The computer-implemented system of claim 16 , wherein determining that the service data satisfies the predetermined retry condition comprises:

determining that the first consensus verification on the service data fails based on a predetermined reason.

18. The computer-implemented system of claim 17 , wherein the service data comprises service data of a transfer service.

19. The non-transitory, computer-readable medium of claim 15 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a difference between the predetermined maximum capacity and a total data amount of service data selected from a service queue to be validated to generate a next block falls within a first specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the difference falls within the first specified value range.

20. The non-transitory, computer-readable medium of claim 15 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a time interval between a current moment and an end moment of a current period falls within a second specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the time interval falls within the second specified value range.

21. The non-transitory, computer-readable medium of claim 11 , wherein storing the service data as service data to be retried comprises:

adding the service data to a queue tail of a precreated service queue to be retried as the service data to be retried.

22. The non-transitory, computer-readable medium of claim 16 , wherein performing the first consensus verification on the service data to be retried comprises:

sequentially selecting, in a front-to-back order, at least one piece of service data to be retried from a service queue to be retried; and

performing the first consensus verification on the selected service data to be retried.

23. The non-transitory, computer-readable medium of claim 13 , wherein the performing the first consensus verification on the service data to be retried comprises:

performing the first consensus verification on the service data to be retried until the first consensus verification on the service data to be retried succeeds or until a number of times of performing the first consensus verification on the service data to be retried reaches a specified value.

24. The computer-implemented system of claim 18 , wherein the predetermined reason comprises:

an asset balance of a transfer is insufficient.

25. The computer-implemented system of claim 16 , wherein a block of the blockchain comprises a predetermined maximum capacity.

26. The computer-implemented system of claim 25 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a difference between the predetermined maximum capacity and a total data amount of service data selected from a service queue to be validated to generate a next block falls within a first specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the difference falls within the first specified value range.

27. The computer-implemented system of claim 25 , wherein determining that the predetermined retry execution condition is triggered comprises:

determining that a time interval between a current moment and an end moment of a current period falls within a second specified value range; and

determining that the predetermined retry execution condition is triggered in response to determining that the time interval falls within the second specified value range.

28. The computer-implemented system of claim 16 , wherein storing the service data as service data to be retried comprises:

adding the service data to a queue tail of a precreated service queue to be retried as the service data to be retried.

29. The computer-implemented system of claim 28 , wherein performing the first consensus verification on the service data to be retried comprises:

sequentially selecting, in a front-to-back order, at least one piece of service data to be retried from a service queue to be retried; and

performing the first consensus verification on the selected service data to be retried.

30. The computer-implemented system of claim 16 , wherein the performing the first consensus verification on the service data to be retried comprises:

performing the first consensus verification on the service data to be retried until the first consensus verification on the service data to be retried succeeds or until a number of times of performing the first consensus verification on the service data to be retried reaches a specified value.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 18, 2025
From: ADVANCED NEW TECHNOLOGIES CO., LTD.
To: ANTCHAIN TECHNOLOGY PTE. LTD.
Reel/Frame 070253/0064 →
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 Jun 25, 2019
From: YANG, XINYING
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 049575/0103 →