ad3522f1a6
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. |
||
---|---|---|
.. | ||
invoiceregistry_test.go | ||
invoiceregistry.go | ||
log.go | ||
utils_test.go |