]> git.meshlink.io Git - meshlink/commitdiff
Ignore ADD_EDGE messages we know are outdated. fix/spurious-channel-closure
authorGuus Sliepen <guus@meshlink.io>
Sun, 30 May 2021 20:34:12 +0000 (22:34 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 30 May 2021 20:40:04 +0000 (22:40 +0200)
A node reconnecting after a network error might send outdated ADD_EDGE
messages. If we see this for an edge we own, we send back a correction.
However, if we don't own the edge but we are one of the edges endpoints,
we ignore it and let the other side, which is the owner, take care of
sending a correction.

This change avoids us from incorrectly learning an old session ID for a
node, which might cause channels to that node to be closed prematurely.


No differences found