mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 16:55:13 +02:00
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:
@@ -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