Open iamjerrchen opened 6 years ago
Possible design: prior to disconnecting, the node shall distribute/share between its neighbors. The neighbors will form new connections, keeping the network intact. With this design we may need to consider the command flow. Ensuring that messages are still being processed. Also consider situations such as when there's a chain if disconnects, ex. nodes that are linearly connected to each other all disconnect at the same time.
Nodes that are disconnecting from the network, must have a protocol that will keep the network intact. It's possible that the disconnecting node is the cutting node, which will split the network into multiple components. This behavior is undesirable.