multi: update GenTaprootFundingScript to pass tapscript root

In most cases, we won't yet be passing a root. The option usage helps us keep the control flow mostly unchanged.
This commit is contained in:
Olaoluwa Osuntokun authored and Oliver Gugger committed 2024-08-28 11:52:31 +02:00
1 parent eeee2979e5
commit 142b408be7
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -308,7 +308,7 @@ func (c *chainWatcher) Start() error {
)
if chanState.ChanType.IsTaproot() {
c.fundingPkScript, _, err = input.GenTaprootFundingScript(
localKey, remoteKey, 0, fn.None[chainhash.Hash](),
localKey, remoteKey, 0, chanState.TapscriptRoot,
)
if err != nil {
return err