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:
3 files changed
+18
-17
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user