lnd.xprv/invoices
Conner Fromknecht 6a02fa1107
invoices/invoiceregistry: properly synchronize backlog
This commit moves the db calls for retrieving add and settle backlogs
outide of the main event loop. All other db operations are performed
outside of the event loop and synchronized via the invoice registry's
mutex, which also synchronizes the order in which events submitted to be
processed.

This resolves various concurrency issues where notifications can be
missed of inconsistent reads against the databse. This is especially
important in this case because we are actually making two separate
database calls.
2020-05-26 17:50:46 -07:00
..
interface.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
invoice_expiry_watcher_test.go invoices: elminitate sleep from expiry watcher tests 2020-04-09 09:58:22 +02:00
invoice_expiry_watcher.go invoices: fix log messages 2020-02-03 15:12:55 +01:00
invoiceregistry_test.go invoices: return error from SubscribeNotifications on shutdown 2020-05-26 17:50:45 -07:00
invoiceregistry.go invoices/invoiceregistry: properly synchronize backlog 2020-05-26 17:50:46 -07:00
log.go invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
resolution_result.go htlcswitch: add failure details to incoming failures 2020-02-06 19:43:39 +02:00
resolution.go invoices: split resolution result into settle, fail and accept enums 2020-02-06 19:41:39 +02:00
test_utils_test.go channeldb: inject clock into database 2020-01-20 11:08:30 +01:00
update.go invoices: split resolution result into settle, fail and accept enums 2020-02-06 19:41:39 +02:00