mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
rpcwallet: use PSBT prev out fetcher
This commit is contained in:
parent
a3e4db60cd
commit
427702dbe6
@ -259,7 +259,8 @@ func (r *RPCKeyRing) FinalizePsbt(packet *psbt.Packet, _ string) error {
|
|||||||
// ones to sign. If there is any input without witness data that we
|
// ones to sign. If there is any input without witness data that we
|
||||||
// cannot sign because it's not our UTXO, this will be a hard failure.
|
// cannot sign because it's not our UTXO, this will be a hard failure.
|
||||||
tx := packet.UnsignedTx
|
tx := packet.UnsignedTx
|
||||||
sigHashes := input.NewTxSigHashesV0Only(tx)
|
prevOutFetcher := basewallet.PsbtPrevOutputFetcher(packet)
|
||||||
|
sigHashes := txscript.NewTxSigHashes(tx, prevOutFetcher)
|
||||||
for idx, txIn := range tx.TxIn {
|
for idx, txIn := range tx.TxIn {
|
||||||
in := packet.Inputs[idx]
|
in := packet.Inputs[idx]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user