Fix invoice amount check

This commit is contained in:
ekzyis 2023-11-27 21:58:19 +01:00
parent ef304a3047
commit ecda577e3e

View File

@ -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