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
2024-03-13 10:52:07 -04:00
committed by Oliver Gugger
parent eeee2979e5
commit 142b408be7
3 changed files with 4 additions and 3 deletions

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