Add PeerManager::disconnect_by_node_id()
authorAntoine Riard <ariard@student.42.fr>
Thu, 28 Jan 2021 22:45:36 +0000 (17:45 -0500)
committerAntoine Riard <ariard@student.42.fr>
Mon, 1 Feb 2021 19:13:37 +0000 (14:13 -0500)
commit5b7d7ed940d62b25a7056682184aa60c8d05b65e
tree7a46b7c07c8f5007dc71312d99e077e9b72ebd0f
parent74cd96f972d539b9e19276bef0e9307c6b3299f1
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