Skip to content

Commit f0648e2

Browse files
committed
lnwallet: export GenTaprootHtlcScript
1 parent cf2174f commit f0648e2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lnwallet/commitment.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,9 +1075,9 @@ func genSegwitV0HtlcScript(chanType channeldb.ChannelType,
10751075
}, nil
10761076
}
10771077

1078-
// genTaprootHtlcScript generates the HTLC scripts for a taproot+musig2
1078+
// GenTaprootHtlcScript generates the HTLC scripts for a taproot+musig2
10791079
// channel.
1080-
func genTaprootHtlcScript(isIncoming bool, whoseCommit lntypes.ChannelParty,
1080+
func GenTaprootHtlcScript(isIncoming bool, whoseCommit lntypes.ChannelParty,
10811081
timeout uint32, rHash [32]byte, keyRing *CommitmentKeyRing,
10821082
) (*input.HtlcScriptTree, error) {
10831083

@@ -1138,8 +1138,7 @@ func genTaprootHtlcScript(isIncoming bool, whoseCommit lntypes.ChannelParty,
11381138
// along side the multiplexer.
11391139
func genHtlcScript(chanType channeldb.ChannelType, isIncoming bool,
11401140
whoseCommit lntypes.ChannelParty, timeout uint32, rHash [32]byte,
1141-
keyRing *CommitmentKeyRing,
1142-
) (input.ScriptDescriptor, error) {
1141+
keyRing *CommitmentKeyRing) (input.ScriptDescriptor, error) {
11431142

11441143
if !chanType.IsTaproot() {
11451144
return genSegwitV0HtlcScript(
@@ -1148,7 +1147,7 @@ func genHtlcScript(chanType channeldb.ChannelType, isIncoming bool,
11481147
)
11491148
}
11501149

1151-
return genTaprootHtlcScript(
1150+
return GenTaprootHtlcScript(
11521151
isIncoming, whoseCommit, timeout, rHash, keyRing,
11531152
)
11541153
}

0 commit comments

Comments
 (0)