A blockchain leader election method and a blockchain leader election device
A leader and blockchain technology, applied in the information field, can solve the problems of wasting system time, affecting system efficiency, difficulty in balancing efficiency and flexibility, etc., and achieve the effect of taking into account the effects, high efficiency, and preventing the absence of leaders
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] A blockchain leader election method provided in this embodiment includes
[0054] Step 1: Multiple nodes constituting a licensed chain include several core nodes, which are certified and authorized to participate in the leader election of the consensus algorithm and may become leaders in the licensed chain; all core nodes Constitutes a set of core nodes;
[0055] figure 1 It is a structural diagram of node deployment in the license chain in this embodiment. like figure 1 As shown, in the permission chain, there are 6 nodes, wherein nodes 101, 102, 103 and 104 are core nodes, and constitute a core node set 100={101, 102, 103, 104}, and nodes 105, 106 are non-core nodes .
[0056] Each core node (that is, all core nodes 101-104) periodically calculates its own node capabilities, and periodically broadcasts its status and capabilities to other core nodes, so that the current leader node and the entire network understand the status of this node, And maintain the latest...
Embodiment 2
[0091] This embodiment discloses a leader election device for leader election. The election device may be a hardware unit in a server or a software module. from figure 2 It can be seen from the figure that the leader election device 200 for leader election includes a node state maintenance module 201, a candidate node maintenance module 202, a node capability calculation module 203, an inter-node communication module 204, a system information module 205 and a configuration policy management module 206 composition.
[0092] The node state maintenance module 201 manages and maintains the state transition of the core node, obtains the capability information of the nodes in the license chain from the node capability calculation module 203 according to preset policies or rules, and obtains the capability information of the nodes in the license chain from the candidate node maintenance module 202 and the inter-node communication module 204 Obtain the state of the core node and mai...
Embodiment 3
[0099] This embodiment discloses a main flow of a leader election method. like image 3 As shown, based on this process, the leader election device can automatically maintain the state of the nodes, and can automatically run the consensus algorithm between each core node, thereby ensuring the consistency of information in the system. The algorithm includes:
[0100] Step S1: When any new node joins the core node set, its initial state is the candidate state. The candidate node first collects its own node capability information and sends it to all other core nodes through capability announcement.
[0101] Step S2: The candidate node listens to the current leader announcement (announcement or advertisement information sent by the current leader node) or backup node announcement (announcement or advertisement information sent by the candidate node) in the permission chain;
[0102] Step S2.1: Judging whether the current leader announcement or the backup node announcement is rec...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com