Skip to content

Commit

Permalink
lnwallet: export GenTaprootHtlcScript
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed May 1, 2024
1 parent fa61f26 commit 4bda93a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnwallet/commitment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,9 +1316,9 @@ func genSegwitV0HtlcScript(chanType channeldb.ChannelType,
}, nil
}

// genTaprootHtlcScript generates the HTLC scripts for a taproot+musig2
// GenTaprootHtlcScript generates the HTLC scripts for a taproot+musig2
// channel.
func genTaprootHtlcScript(isIncoming, ourCommit bool, timeout uint32,
func GenTaprootHtlcScript(isIncoming, ourCommit bool, timeout uint32,
rHash [32]byte, keyRing *CommitmentKeyRing,
auxLeaf input.AuxTapLeaf) (*input.HtlcScriptTree, error) {

Expand Down Expand Up @@ -1388,7 +1388,7 @@ func genHtlcScript(chanType channeldb.ChannelType, isIncoming, ourCommit bool,
)
}

return genTaprootHtlcScript(
return GenTaprootHtlcScript(
isIncoming, ourCommit, timeout, rHash, keyRing, auxLeaf,
)
}
Expand Down

0 comments on commit 4bda93a

Please sign in to comment.