lnd.xprv/invoices
Joost Jager ad3522f1a6
channeldb+invoices: move invoice accept or settle logic into registry
As the logic around invoice mutations gets more complex, the friction
caused by having this logic split between invoice registry and channeldb
becomes more apparent. This commit brings a clearer separation of
concerns by centralizing the accept/settle logic in the invoice
registry.

The original AcceptOrSettle method is renamed to UpdateInvoice because
the update to perform is controlled by the callback.
2019-09-04 19:20:21 +02:00
..
invoiceregistry_test.go multi: use separate cltv expiry field from invoice 2019-09-04 19:20:19 +02:00
invoiceregistry.go channeldb+invoices: move invoice accept or settle logic into registry 2019-09-04 19:20:21 +02:00
log.go invoices: create package 2019-01-07 23:04:05 +01:00
utils_test.go htlcswitch: hodl invoice 2019-03-15 10:09:17 +01:00