channeldb+invoices: move hold invoice settle logic into registry

This commit is a continuation of the centralization of invoice state
transition logic in the invoice registry.
This commit is contained in:
Joost Jager committed 2019-09-04 19:20:23 +02:00
1 parent ad3522f1a6
commit 416bc8c68c
3 files changed
+37 -84

No files matched your search

+3 -2
View File
@@ -692,8 +692,9 @@ func getUpdateInvoice(amt lnwire.MilliSatoshi) InvoiceUpdateCallback {
}
update := &InvoiceUpdateDesc{
State: ContractSettled,
AmtPaid: amt,
Preimage: invoice.Terms.PaymentPreimage,
State: ContractSettled,
AmtPaid: amt,
}
return update, nil