improve comment per Jeff's comment
authorArik Sosman <git@arik.io>
Wed, 19 Feb 2020 17:40:05 +0000 (09:40 -0800)
committerArik Sosman <git@arik.io>
Wed, 19 Feb 2020 17:40:05 +0000 (09:40 -0800)
lightning/src/ln/peer_handler.rs

index b36686eeae7ef48702ad1b7ac4e47e6cc9efa087..eafb2bde7c7874497e59e1470141304aeee9b991 100644 (file)
@@ -1086,9 +1086,8 @@ impl<Descriptor: SocketDescriptor, CM: Deref> PeerManager<Descriptor, CM> where
                                        }
                                }
 
-                               // check if the peer is ready for encryption
+                               // The peer needs to complete its handshake before we can exchange messages
                                if !peer.channel_encryptor.is_ready_for_encryption() {
-                                       // let's wait for the peer to complete the handshake
                                        return true;
                                }