]> git.meshlink.io Git - meshlink/commitdiff
Allow the mesh to detect when a node has completely restarted. features/detect-restarted-nodes
authorGuus Sliepen <guus@meshlink.io>
Sun, 13 Oct 2019 21:32:03 +0000 (23:32 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 14 Oct 2019 19:27:01 +0000 (21:27 +0200)
When calling meshlink_open(), a node creates a unique ID that is passed
along ADD_EDGE messages. When a node becomes unreachable and then reachable
again, this allows other nodes to detect whether it was just a temporary
network issue, or whether the node completely restarted (either because
meshlink_close() was called or because it crashed).

At the moment, when this is detected, other nodes close all open channels
with the restarted node.


No differences found