From: Antoine Riard Date: Thu, 28 Jan 2021 22:45:36 +0000 (-0500) Subject: Add PeerManager::disconnect_by_node_id() X-Git-Tag: v0.0.13~40^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=5b7d7ed940d62b25a7056682184aa60c8d05b65e;p=rust-lightning 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. --- 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