Skip to content

Commit

Permalink
lnwallet: export GenTaprootHtlcScript
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Apr 24, 2024
1 parent 8f73c01 commit 9157982
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 @@ -1325,9 +1325,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 @@ -1397,7 +1397,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 9157982

Please sign in to comment.