diff --git a/lnd/invoice.go b/lnd/invoice.go index 84d9163..83c833d 100644 --- a/lnd/invoice.go +++ b/lnd/invoice.go @@ -87,7 +87,7 @@ func (lnd *LNDClient) CheckInvoice(d *db.DB, hash lntypes.Hash) { log.Printf("invoice expired: hash=%s", hash) break } - if lnInvoice.AmountPaid > 0 { + if lnInvoice.AmountPaid == lnInvoice.Amount { if preimage, err = lntypes.MakePreimageFromStr(invoice.Preimage); err != nil { handleLoopError(err) continue