CONSENSUS VERIFICATION METHOD, APPARATUS, AND DEVICE
First Claim
1. A computer-implemented method, comprising:
- receiving, by a first node of a blockchain, service data;
performing first consensus verification on the service data;
determining whether the first consensus verification on the service data succeeds; and
in response to determining that the first consensus verification on the service data succeeds;
adding the service data to a service queue to be validated, the service data being selectable by a second node from the service queue to be validated to generate a block; and
performing second consensus verification on the block; and
in response to determining that the first consensus verification on the service data fails;
determining whether 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; and
after storing the service data as service data to be retried;
determining whether 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.
3 Assignments
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A computer-implemented method, comprising:
-
receiving, by a first node of a blockchain, service data; performing first consensus verification on the service data; determining whether the first consensus verification on the service data succeeds; and in response to determining that the first consensus verification on the service data succeeds; adding the service data to a service queue to be validated, the service data being selectable by a second node from the service queue to be validated to generate a block; and performing second consensus verification on the block; and in response to determining that the first consensus verification on the service data fails; determining whether 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; and after storing the service data as service data to be retried; determining whether 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. 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; determining whether the first consensus verification on the service data succeeds; and in response to determining that the first consensus verification on the service data succeeds; adding the service data to a service queue to be validated, the service data being selectable by a second node from the service queue to be validated to generate a block; and performing second consensus verification on the block; and in response to determining that the first consensus verification on the service data fails; determining whether 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; and after storing the service data as service data to be retried; determining whether 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. - View Dependent Claims (14, 15, 16, 17)
-
-
18. 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; determining whether the first consensus verification on the service data succeeds; and in response to determining that the first consensus verification on the service data succeeds; adding the service data to a service queue to be validated, the service data being selectable by a second node from the service queue to be validated to generate a block; and performing second consensus verification on the block; and in response to determining that the first consensus verification on the service data fails; determining whether 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; and after storing the service data as service data to be retried; determining whether 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. - View Dependent Claims (19, 20)
-
Specification