From 2454ad71513797ef4772a89b665aff67dd1cec7d Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Wed, 19 Feb 2020 09:40:05 -0800 Subject: [PATCH] improve comment per Jeff's comment --- lightning/src/ln/peer_handler.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5