Skip to content

Commit

Permalink
fixup! note return value overlap based on opt_anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
wpaulino committed Aug 26, 2022
1 parent 7005bfc commit d826b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/src/ln/chan_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTLCType> {
if opt_anchors {
if witness_script_len == 136 {
Expand Down

0 comments on commit d826b08

Please sign in to comment.