Fix invoice amount check
This commit is contained in:
parent
ef304a3047
commit
ecda577e3e
@ -87,7 +87,7 @@ func (lnd *LNDClient) CheckInvoice(d *db.DB, hash lntypes.Hash) {
|
|||||||
log.Printf("invoice expired: hash=%s", hash)
|
log.Printf("invoice expired: hash=%s", hash)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if lnInvoice.AmountPaid > 0 {
|
if lnInvoice.AmountPaid == lnInvoice.Amount {
|
||||||
if preimage, err = lntypes.MakePreimageFromStr(invoice.Preimage); err != nil {
|
if preimage, err = lntypes.MakePreimageFromStr(invoice.Preimage); err != nil {
|
||||||
handleLoopError(err)
|
handleLoopError(err)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user