channeldb: split cancelInvoice logic in the UpdateInvoice method
This commit is contained in:
3 files changed
+69
-5
No files matched your search
@@ -1329,6 +1329,7 @@ func (i *InvoiceRegistry) cancelInvoiceImpl(payHash lntypes.Hash,
|
||||
// channeldb to return an error if the invoice is already
|
||||
// settled or canceled.
|
||||
return &InvoiceUpdateDesc{
|
||||
UpdateType: CancelInvoiceUpdate,
|
||||
State: &InvoiceStateUpdateDesc{
|
||||
NewState: ContractCanceled,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user