]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f clarify comment
authorMatt Corallo <git@bluematt.me>
Mon, 25 Oct 2021 17:42:09 +0000 (17:42 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Oct 2021 18:26:10 +0000 (18:26 +0000)
lightning/src/ln/peer_handler.rs

index 3d1540a9419c65178105cabfca5e1a40a2ed40a5..23641b74122598380068bacb100f75644d8c09e8 100644 (file)
@@ -1535,7 +1535,9 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
                                let mut do_disconnect_peer = false;
                                if !peer.channel_encryptor.is_ready_for_encryption() || peer.their_node_id.is_none() {
                                        // The peer needs to complete its handshake before we can exchange messages. We
-                                       // give peers one timer tick to complet handshake.
+                                       // give peers one timer tick to complete handshake, reusing
+                                       // `awaiting_pong_tick_intervals` to track number of timer ticks taken for
+                                       // handshake completion.
                                        if peer.awaiting_pong_tick_intervals != 0 {
                                                do_disconnect_peer = true;
                                        } else {