Open s-tikhomirov opened 4 years ago
I question that myself. I suppose this is just us being over-parsimonious of resources: an open connection is something that consumes resources on the OS side as well as in C-Lightning, and disconnecting as soon as we close a channel is not prohibited by the BOLT spec anyway, so we disconnect to free up resources ASAP.
Note that fundchannel
will now automatically connect to a node.if not already connected (though some of our docs still claim it needs to be connect
ed first before fundchannel
, it is no longer true and we should probably go fix the docs), so this tends to be benign when looking at it from a high-enough level: if all you care about is making channels to the network graph, you just fundchannel
and close
and we automatically connect / disconnect.
Issue and Steps to Reproduce
I have two nodes A and B in a local testnet-based setup. I opened a channel from B to A and then closed it. The close was mutual. Then I found that the P2P connection had been dropped.
Is this an intended behavior? If so, why drop the connection after a channel closure? Nobody misbehaved in this situation.
getinfo
output