C-Otto/lnd-manageJ

Bug: Fix endless loop if >= 1000 unsettled invoices need to be loaded/skipped

C-Otto opened this issue · 0 comments

Describe the bug
SettledInvoices.refresh is stuck in an endless loop if none of the next 1000 new invoices is settled.

To Reproduce
Have 1001ish unsettled invoices with an index larger than the persisted add index.

Expected behavior
Refresh gives up after a while.