Consensus method and apparatus
AssigneeAlibaba Group Holding Limited
InventorQiang Tang
Life of this patent
Estimating the term…
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.
Claims20
A computer-implemented method, comprising:
- receiving, by a blockchain primary node, a trigger of a view switching condition in a blockchain network;
- selecting, by the blockchain primary node, a successor node 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.
A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
- receiving, by a blockchain primary node, a trigger of a view switching condition in a blockchain network;
- selecting, by the blockchain primary node, a successor node 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.
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 blockchain primary node, a trigger of a view switching condition in a blockchain network;
- selecting, by the blockchain primary node, a successor node 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.
Dependencies are inferred from the claim text.