Merge pull request #71 from TheBlueMatt/2018-07-watch-funding
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Sun, 22 Jul 2018 21:54:50 +0000 (17:54 -0400)
committerGitHub <noreply@github.com>
Sun, 22 Jul 2018 21:54:50 +0000 (17:54 -0400)
 Ensure the funding transaction is registered to be monitored

src/ln/peer_handler.rs

index 5adb07f691bb2dda97713bcc2e51c5b8dc3ca6b0..e735b0b650fa2422a1055ff3031990e40c034929 100644 (file)
@@ -121,7 +121,10 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
                }
        }
 
-       /// Get the list of known node ids
+       /// Get the list of node ids for peers which have completed the initial handshake.
+       /// For outbound connections, this will be the same as the their_node_id parameter passed in to
+       /// new_outbound_connection, however entries will only appear once the initial handshake has
+       /// completed and we are sure the remote peer has the private key for the given node_id.
        pub fn get_peer_node_ids(&self) -> Vec<PublicKey> {
                let peers = self.peers.lock().unwrap();
                peers.peers.values().filter_map(|p| p.their_node_id).collect()