]> git.bitcoin.ninja Git - rust-lightning/commit
Introduce `PeerManager::list_peers` and `peer_by_node_id`
authorElias Rohrer <dev@tnull.de>
Tue, 20 Feb 2024 12:36:45 +0000 (13:36 +0100)
committerElias Rohrer <dev@tnull.de>
Wed, 21 Feb 2024 09:12:16 +0000 (10:12 +0100)
commit0c74cdc573d43cdabfb7c960f41d6cc3dd55b9e5
tree61388337acc8e998b5c380112409b604392edcf6
parentcd847574f221485fe10251e1e4fa1fdbe302a6c5
Introduce `PeerManager::list_peers` and `peer_by_node_id`

.. returning `PeerDetails` rather than tuples of peer-associated values.

Previously, we wouldn't offer any way to retrieve the features a
peer provided in their `Init` message.

Here, we allow to retrieve them via a new `PeerDetails` struct,
side-by-side with `SocketAddress`es and a bool indicating the direction
of the peer connection.
fuzz/src/full_stack.rs
lightning/src/ln/peer_handler.rs