From 5b7d7ed940d62b25a7056682184aa60c8d05b65e Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Thu, 28 Jan 2021 17:45:36 -0500 Subject: [PATCH] Add PeerManager::disconnect_by_node_id() This public method allows a client to easily disconnect peers while only owning its node id. It will clean up peer state and disconnect properly its descriptor. --- lightning/src/ln/peer_handler.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 890df356c..e083c0119 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1179,6 +1179,24 @@ impl PeerManager