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:
3 files changed
+37
-84
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user