invoices: remove unnecessary invoice value check

This commit is contained in:
Joost Jager 2019-12-03 20:41:46 +01:00
parent a33474ca0e
commit 970187ace4
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -107,8 +107,9 @@ func updateInvoice(ctx *invoiceUpdateCtx, inv *channeldb.Invoice) (
// If an invoice amount is specified, check that enough is paid. Also // If an invoice amount is specified, check that enough is paid. Also
// check this for duplicate payments if the invoice is already settled // check this for duplicate payments if the invoice is already settled
// or accepted. // or accepted. In case this is a zero-valued invoice, it will always be
if inv.Terms.Value > 0 && ctx.amtPaid < inv.Terms.Value { // enough.
if ctx.amtPaid < inv.Terms.Value {
return nil, resultAmountTooLow, nil return nil, resultAmountTooLow, nil
} }