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.
1 parent 6dab6b1 commit bf46a5fCopy full SHA for bf46a5f
src/ln/peer_handler.rs
@@ -147,7 +147,12 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
147
/// completed and we are sure the remote peer has the private key for the given node_id.
148
pub fn get_peer_node_ids(&self) -> Vec<PublicKey> {
149
let peers = self.peers.lock().unwrap();
150
- peers.peers.values().filter_map(|p| p.their_node_id).collect()
+ peers.peers.values().filter_map(|p| {
151
+ if !p.channel_encryptor.is_ready_for_encryption() || p.their_global_features.is_none() {
152
+ return None;
153
+ }
154
+ p.their_node_id
155
+ }).collect()
156
}
157
158
/// Indicates a new outbound connection has been established to a node with the given node_id.
0 commit comments