Skip to content

Commit 427702d

Browse files
committed
rpcwallet: use PSBT prev out fetcher
1 parent a3e4db6 commit 427702d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lnwallet/rpcwallet/rpcwallet.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ func (r *RPCKeyRing) FinalizePsbt(packet *psbt.Packet, _ string) error {
259259
// ones to sign. If there is any input without witness data that we
260260
// cannot sign because it's not our UTXO, this will be a hard failure.
261261
tx := packet.UnsignedTx
262-
sigHashes := input.NewTxSigHashesV0Only(tx)
262+
prevOutFetcher := basewallet.PsbtPrevOutputFetcher(packet)
263+
sigHashes := txscript.NewTxSigHashes(tx, prevOutFetcher)
263264
for idx, txIn := range tx.TxIn {
264265
in := packet.Inputs[idx]
265266

0 commit comments

Comments
 (0)