Closed alexbosworth closed 2 years ago
Looks like we might be missing a check in this routine: https://github.com/lightningnetwork/lnd/blob/master/lnwallet/btcwallet/psbt.go#L221
So it's panicing here: https://github.com/btcsuite/btcd/blob/master/txscript/hashcache.go#L239-L244 because wallet.PsbtPrevOutputFetcher
is missing information it needs to populate things.
on a PSBT that was created referencing a P2TR UTXO but absent Taproot specific fields, LND will terminate with
Is it that the taproot specific derivation info wasn't added, or that the base input UTXO fields weren't added?
I think it could be without the base UTXO fields, I have to take another look at how I structured it, I think I tried it with the old bip32 derivation fields though and I need to convert them to the new taproot bip32 derivation fields
Background
When calling
SignPsbt
on a PSBT that was created referencing a P2TR UTXO but absent Taproot specific fields, LND will terminate with?panic: runtime error: invalid memory address or nil pointer dereference
Your environment
Steps to reproduce
SignPsbt
on that PSBTExpected behavior
Actual behavior