Raft algorithm-based block chain consensus method and system
A blockchain and consensus technology, applied in the field of blockchain consensus, can solve problems such as unavoidable harm of malicious nodes, and achieve the effect of eliminating security risks, solving security risks, and reducing performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0105] as attached figure 1 As shown, the blockchain consensus method based on the Raft algorithm of the present invention is to add an observer node on the basis of the leader, follower and candidate nodes, and the initial state of the cluster affects all nodes except the observer node. Set a random timeout period; during the leader election process, the observer monitors the candidates, identifies whether the candidates are malicious nodes, and has the final decision on the generation of the leader; All nodes in the log copy RPC messages, and the observer does not feedback information; during the cluster change process, the observer sends the new log item to the leader, and the leader broadcasts the new log item and puts the new log item in the Local state machine; as follows:
[0106] S1. Cluster initialization: In addition to an inherent observation point N at the beginning 0 In addition, all nodes are followers;
[0107] S2. Election of the leader: The leader election ...
Embodiment 2
[0185] This embodiment provides a blockchain consensus system based on the Raft algorithm, the system includes:
[0186] The initialization module is used for cluster initialization, that is, to set the initial in addition to an inherent observation point N 0 In addition, all nodes are followers;
[0187] The election module is used to trigger the candidate's request to vote RPC through the follower's failure to receive heartbeat information for leader election;
[0188] The identification module is used to identify the malicious node when a candidate initiates a request for voting RPC, so as to reduce performance pressure and ensure cluster security;
[0189] The replication module is used to create a new log entry based on the instructions in the client request, append it to the local log, and then copy the RPC message through the log to copy the log entry to other servers;
[0190] The change module is used to use the observer node to send the newly configured log item to t...
Embodiment 3
[0192] This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by the processor to make the processor execute the Raft algorithm-based blockchain consensus method in any embodiment of the present invention. Specifically, it is possible to provide a system or apparatus equipped with a storage medium on which software program codes for implementing the functions of any of the above-described embodiments are stored, and which enables a computer (or CPU or MPU of the system or apparatus) ) to read and execute the program code stored in the storage medium.
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com