Merge pull request #8491 from davidgumberg/invoice_cltv_expiry

Expose `cltv_expiry` flag of `addinvoice` to cli
This commit is contained in:
Oliver Gugger authored and GitHub committed 2024-06-04 13:59:50 +02:00
commit a832371d61
4 files changed
+23 -1

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
if invoice.CltvExpiry < routing.MinCLTVDelta {
return nil, nil, fmt.Errorf("CLTV delta of %v must be "+
"greater than minimum of %v",
routing.MinCLTVDelta, invoice.CltvExpiry)
invoice.CltvExpiry, routing.MinCLTVDelta)
}
options = append(options,