Skip to content

Commit 2454ad7

Browse files
committed
improve comment per Jeff's comment
1 parent a1d3e1b commit 2454ad7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,9 +1086,8 @@ impl<Descriptor: SocketDescriptor, CM: Deref> PeerManager<Descriptor, CM> where
10861086
}
10871087
}
10881088

1089-
// check if the peer is ready for encryption
1089+
// The peer needs to complete its handshake before we can exchange messages
10901090
if !peer.channel_encryptor.is_ready_for_encryption() {
1091-
// let's wait for the peer to complete the handshake
10921091
return true;
10931092
}
10941093

0 commit comments

Comments
 (0)