multi: bump btcd to taproot aware version

This commit is contained in:
Oliver Gugger
2022-03-18 18:37:43 +01:00
parent 0dcaa511a2
commit 72c9582b85
24 changed files with 228 additions and 107 deletions

View File

@@ -7,7 +7,6 @@ import (
"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/lnwallet"
@@ -264,7 +263,7 @@ func createSweepTx(inputs []input.Input, outputs []*wire.TxOut,
return nil, err
}
hashCache := txscript.NewTxSigHashes(sweepTx)
hashCache := input.NewTxSigHashesV0Only(sweepTx)
// With all the inputs in place, use each output's unique input script
// function to generate the final witness required for spending.