Skip to content

Commit 609e359

Browse files
committed
lnwallet: export GenTaprootHtlcScript
1 parent 09ba38e commit 609e359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lnwallet/commitment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,9 +1315,9 @@ func genSegwitV0HtlcScript(chanType channeldb.ChannelType,
13151315
}, nil
13161316
}
13171317

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

@@ -1387,7 +1387,7 @@ func genHtlcScript(chanType channeldb.ChannelType, isIncoming, ourCommit bool,
13871387
)
13881388
}
13891389

1390-
return genTaprootHtlcScript(
1390+
return GenTaprootHtlcScript(
13911391
isIncoming, ourCommit, timeout, rHash, keyRing, auxLeaf,
13921392
)
13931393
}

0 commit comments

Comments
 (0)