We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3362a1 + 951c1d4 commit 27476d2Copy full SHA for 27476d2
src/ln/peer_handler.rs
@@ -121,7 +121,10 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
121
}
122
123
124
- /// Get the list of known node ids
+ /// Get the list of node ids for peers which have completed the initial handshake.
125
+ /// For outbound connections, this will be the same as the their_node_id parameter passed in to
126
+ /// new_outbound_connection, however entries will only appear once the initial handshake has
127
+ /// completed and we are sure the remote peer has the private key for the given node_id.
128
pub fn get_peer_node_ids(&self) -> Vec<PublicKey> {
129
let peers = self.peers.lock().unwrap();
130
peers.peers.values().filter_map(|p| p.their_node_id).collect()
0 commit comments