From: Matt Corallo Date: Mon, 25 Oct 2021 17:42:09 +0000 (+0000) Subject: f clarify comment X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=4270ce1b939a2cd51f81df2545d948ea22d4c3d4;p=rust-lightning f clarify comment --- 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 {