From 4270ce1b939a2cd51f81df2545d948ea22d4c3d4 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 25 Oct 2021 17:42:09 +0000 Subject: [PATCH] f clarify comment --- lightning/src/ln/peer_handler.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 3d1540a94..23641b741 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1535,7 +1535,9 @@ impl 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 { -- 2.39.5