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
2024-04-02 19:28:54 +01:00
parent ab7634b276
commit b954ee4c72
2 changed files with 8 additions and 9 deletions

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