From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Sun, 22 Jul 2018 21:54:50 +0000 (-0400) Subject: Merge pull request #71 from TheBlueMatt/2018-07-watch-funding X-Git-Tag: v0.0.12~381 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=456323886b9f5b67af3b07d9b3094cdc6d29d1cb;hp=896f5b8d914a1cc7211ec612201fdceb6abc7d12;p=rust-lightning Merge pull request #71 from TheBlueMatt/2018-07-watch-funding Ensure the funding transaction is registered to be monitored --- diff --git a/src/ln/peer_handler.rs b/src/ln/peer_handler.rs index 5adb07f6..e735b0b6 100644 --- a/src/ln/peer_handler.rs +++ b/src/ln/peer_handler.rs @@ -121,7 +121,10 @@ impl PeerManager { } } - /// 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 { let peers = self.peers.lock().unwrap(); peers.peers.values().filter_map(|p| p.their_node_id).collect()