walletrpc+lncli: allow zero output psbt funding

To support the cpfp fee bump use case where no external outputs are
required.
This commit is contained in:
Joost Jager committed 2021-08-16 08:41:50 +02:00
1 parent 5499a35987
commit 925229f9df
3 files changed
+18 -17

No files matched your search

-3
View File
@@ -996,9 +996,6 @@ func (w *WalletKit) FundPsbt(_ context.Context,
// PSBT and copy the RPC information over.
case req.GetRaw() != nil:
tpl := req.GetRaw()
if len(tpl.Outputs) == 0 {
return nil, fmt.Errorf("no outputs specified")
}
txOut := make([]*wire.TxOut, 0, len(tpl.Outputs))
for addrStr, amt := range tpl.Outputs {