diff --git a/lightning/src/ln/chan_utils.rs b/lightning/src/ln/chan_utils.rs index 2f31af2f56d..deb3b632864 100644 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@ -66,7 +66,8 @@ pub(crate) enum HTLCType { } impl HTLCType { - /// Check if a given tx witnessScript len matchs one of a pre-signed HTLC + /// Check if a given tx witnessScript len matchs one of a pre-signed HTLC. The returned + /// `HTLCType` can match incorrectly based on the value of `opt_anchors`. pub(crate) fn scriptlen_to_htlctype(witness_script_len: usize, opt_anchors: bool) -> Option { if opt_anchors { if witness_script_len == 136 {