Method for adding nodes in blockchain network
It mainly introduces how to dynamically add new consensus nodes without interrupting the operation of blockchain network. The following are the core points of the document:
Background and problem:
Problem description: When adding nodes in blockchain network in the existing technology, network interruption often occurs, and the entire system needs to be stopped or the unstarted nodes need to be deleted and then added again.
Technical requirements: Provide a method for dynamically adding nodes without interrupting the operation of blockchain network.
Invention content:
Method overview: The present invention provides a method for adding nodes in blockchain network, including the current consensus node obtaining the first transaction of adding nodes, executing the transaction and numbering it in the node list, and implementing view change to enable the new node to participate in consensus verification.
System and device: A system and device for implementing the method are also provided, including a computer program, a non-transient computer-readable storage medium, and a device including multiple modules.
Technical details:
First transaction: including a request to add a node as a new consensus node, which is executed and numbered after consensus verification.
Node list: The current consensus node is maintained locally, including consensus node identification, IP address and port number, and the nodes are numbered sequentially.
View change: initiated when the node list is detected to be inconsistent with the current view, including renumbering and broadcasting new view messages.
Synchronization process: The new node synchronizes the blockchain data, sends a start request after confirming the addition request, and synchronizes the data again to ensure consistency with the blockchain network.
Implementation examples:
PBFT example: details how to dynamically add nodes through transaction requests, consensus verification, view changes, etc. under the Practical Byzantine Fault Tolerance (PBFT) consensus mechanism.
Flowchart: The detailed steps for adding nodes are shown through a flowchart, including key stages such as node addition request, transaction execution, and view change.
Advantages and effects:
Improve robustness: Increase the total number of consensus nodes and improve the tolerance of the blockchain network to malicious or faulty nodes.
Avoid interruptions: Dynamically execute transactions and view changes without interrupting the operation of the blockchain network.
Fast synchronization: Ensure that new nodes quickly obtain blockchain data consistent with existing nodes through multiple synchronizations.