projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d3e1b
)
improve comment per Jeff's comment
author
Arik Sosman
<git@arik.io>
Wed, 19 Feb 2020 17:40:05 +0000
(09:40 -0800)
committer
Arik Sosman
<git@arik.io>
Wed, 19 Feb 2020 17:40:05 +0000
(09:40 -0800)
lightning/src/ln/peer_handler.rs
patch
|
blob
|
history
diff --git
a/lightning/src/ln/peer_handler.rs
b/lightning/src/ln/peer_handler.rs
index b36686eeae7ef48702ad1b7ac4e47e6cc9efa087..eafb2bde7c7874497e59e1470141304aeee9b991 100644
(file)
--- a/
lightning/src/ln/peer_handler.rs
+++ b/
lightning/src/ln/peer_handler.rs
@@
-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;
}