From: Arik Sosman Date: Wed, 19 Feb 2020 17:40:05 +0000 (-0800) Subject: improve comment per Jeff's comment X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2454ad71513797ef4772a89b665aff67dd1cec7d;p=rust-lightning improve comment per Jeff's comment --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index b36686eea..eafb2bde7 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1086,9 +1086,8 @@ impl PeerManager 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; }