lnd.xprv/invoices
Andras Banki-Horvath fabcdf754a invoices: fix slow startup with many expired invoices
This commit intends to fix slow first startup time when there are many
invoices that need to be canceled. The slowdown is caused by a combination
of adding invoices to the expiry watcher one-by-one and slow
cancellation. Due to slow cancellation and the unbuffered channel which
we use to pass invoices to the expiry watcher blocks the registry.
With this fix we'll instead batch add invoices to the expiry watcher and
thereby won't block the registry startup.
2020-01-24 21:01:10 +01:00
..
interface.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
invoice_expiry_watcher_test.go invoices: fix slow startup with many expired invoices 2020-01-24 21:01:10 +01:00
invoice_expiry_watcher.go invoices: fix slow startup with many expired invoices 2020-01-24 21:01:10 +01:00
invoiceregistry_test.go channeldb: inject clock into database 2020-01-20 11:08:30 +01:00
invoiceregistry.go invoices: fix slow startup with many expired invoices 2020-01-24 21:01:10 +01:00
log.go invoices: create package 2019-01-07 23:04:05 +01:00
test_utils_test.go channeldb: inject clock into database 2020-01-20 11:08:30 +01:00
update.go invoices: add missing String() cases 2020-01-21 16:52:13 +01:00