IP Library Granted Patent US 10,684,925
Granted Patent B2
US 10,684,925 · App. 16/440,782 · Granted Jun 16, 2020

Method for view switching in a blockchain network

Inventor: Qiang Tang (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
G06F11/2033G06F11/2041G06F21/602H04L63/10H04L63/20G06F2201/805G06F2201/875
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,684,925
App. No.
16/440,782
Granted
Jun 16, 2020
Kind
B2
Abstract

Implementations of the present solution disclose a method for triggering view switching in a blockchain without requiring a separate consensus to be executed by the backup nodes. The blockchain primary node receives a trigger that indicates a view switching condition. Then the primary node selects a successor node, and initiates a view switch, where the successor node will act as a new primary node in the next view. The new primary node can then initiate a consensus in the next view.

Claims (52)

1. A computer-implemented method for performing view switching in a blockchain network, wherein the blockchain network comprises a primary node and a plurality of backup nodes, wherein the primary node initiates a consensus for a service request within the blockchain network, and wherein the service request is not for initiating a view switching, the method comprising:

receiving, by the blockchain primary node, a trigger of a view switching condition in a blockchain network, wherein the trigger indicates one of:

(a) receiving the service request, initiating the consensus for the service request, and determining a result of the consensus for the service request, or

(b) a failure to initiate the consensus for the service request within a predetermined time;

selecting, by the blockchain primary node, a successor node from the plurality of backup nodes based on the trigger of the view switching condition; and

switching, by the blockchain primary node based on the successor node, a current view to a next view that uses the successor node as a succeeding blockchain primary node, wherein the succeeding blockchain primary node initiates a consensus in the next view.

2. The computer-implemented method of claim 1 , wherein receiving the trigger of the view switching condition comprises:

receiving, by the blockchain primary node, a service request; and

determining that a consensus on the service request fails to be initiated within a predetermined time.

3. The computer-implemented method of claim 2 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises:

determining that data included in the service request is incorrect.

4. The computer-implemented method of claim 2 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises:

determining that the blockchain primary node sent an incorrect notification message indicating a consensus phase to the successor node.

5. The computer-implemented method of claim 1 , wherein selecting, by the blockchain primary node, the successor node comprises:

determining, by the blockchain primary node, a next view of the current view; and

selecting a successor node that corresponds to the next view.

6. The computer-implemented method of claim 5 , wherein switching the current view to the next view that uses the successor node as the succeeding blockchain primary node comprises:

switching the current view to the next view, wherein the successor node is used as a blockchain primary node in the next view.

7. The computer-implemented method of claim 1 , wherein the blockchain network comprises a consortium blockchain network or a private blockchain network.

8. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations for performing view switching in a blockchain network, wherein the blockchain network comprises a primary node and a plurality of backup nodes, wherein the primary node initiates a consensus for a service request within the blockchain network, and wherein the service request is not for initiating a view switching, the method comprising:

receiving, by the blockchain primary node, a trigger of a view switching condition in a blockchain network, wherein the trigger indicates one of:

(a) receiving the service request, initiating the consensus for the service request, and determining a result of the consensus for the service request, or

(b) a failure to initiate the consensus for the service request within a predetermined time;

selecting, by the blockchain primary node, a successor node from the plurality of backup nodes based on the trigger of the view switching condition; and

switching, by the blockchain primary node based on the successor node, a current view to a next view that uses the successor node as a succeeding blockchain primary node, wherein the succeeding blockchain primary node initiates a consensus in the next view.

9. The computer-readable medium of claim 8 , wherein receiving the trigger of the view switching condition comprises:

receiving, by the blockchain primary node, a service request; and

determining that a consensus on the service request fails to be initiated within a predetermined time.

10. The computer-readable medium of claim 9 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises:

determining that data included in the service request is incorrect.

11. The computer-readable medium of claim 9 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises:

determining that the blockchain primary node sent an incorrect notification message indicating a consensus phase to the successor node.

12. The computer-readable medium of claim 8 , wherein selecting, by the blockchain primary node, the successor node comprises:

determining, by the blockchain primary node, a next view of the current view; and

selecting a successor node that corresponds to the next view.

13. The computer-readable medium of claim 12 wherein switching the current view to the next view that uses the successor node as the succeeding blockchain primary node comprises:

switching the current view to the next view, wherein the successor node is used as a blockchain primary node in the next view.

14. The computer-readable medium of claim 8 , wherein the blockchain network comprises a consortium blockchain network or a private blockchain network.

15. 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 for performing view switching in a blockchain network, wherein the blockchain network comprises a primary node and a plurality of backup nodes, wherein the primary node initiates a consensus for a service request within the blockchain network, and wherein the service request is not for initiating a view switching, the method comprising:

receiving, by the blockchain primary node, a trigger of a view switching condition in a blockchain network, wherein the trigger indicates one of:

(a) receiving the service request, initiating the consensus for the service request, and determining a result of the consensus for the service request, or

(b) a failure to initiate the consensus for the service request within a predetermined time;

selecting, by the blockchain primary node, a successor node from the plurality of backup nodes based on the trigger of the view switching condition; and

switching, by the blockchain primary node based on the successor node, a current view to a next view that uses the successor node as a succeeding blockchain primary node, wherein the succeeding blockchain primary node initiates a consensus in the next view.

16. The computer-implemented system of claim 15 , wherein receiving the trigger of the view switching condition comprises:

receiving, by the blockchain primary node, a service request; and

determining that a consensus on the service request fails to be initiated within a predetermined time.

17. The computer-implemented system of claim 16 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises: determining that the blockchain primary node sent an incorrect notification message indicating a consensus phase to the successor node.

18. The computer-implemented system of claim 16 , wherein determining that the consensus on the service request fails to be initiated with the predetermined time comprises:

determining that data included in the service request is incorrect.

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 Nov 4, 2019
From: TANG, QIANG
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 050907/0066 →