rpcserver: allow unconf. inputs for psbt shim.

Allow unconfirmed inputs to be used when funding a channel via
the psbt channel opening flow. We do now check for unstable utxos.
This commit is contained in:
ziggie committed 2024-04-24 13:58:20 +01:00
1 parent ab7634b276
commit b954ee4c72
2 files changed
+8 -9

No files matched your search

+2 -2
View File
@@ -1574,12 +1574,12 @@ func (w *WalletKit) fundPsbtInternalWallet(account string,
return true
}
eligible := fn.Filter(filterFn, utxos)
eligibleUtxos := fn.Filter(filterFn, utxos)
// Validate all inputs against our known list of UTXOs
// now.
err = verifyInputsUnspent(
packet.UnsignedTx.TxIn, eligible,
packet.UnsignedTx.TxIn, eligibleUtxos,
)
if err != nil {
return err