channeldb: split cancelInvoice logic in the UpdateInvoice method
This commit is contained in:
3 files changed
+69
-5
No files matched your search
@@ -265,6 +265,7 @@ func updateMpp(ctx *invoiceUpdateCtx, inv *Invoice) (*InvoiceUpdateDesc,
|
||||
var failRes *HtlcFailResolution
|
||||
htlcPreimages, failRes = reconstructAMPPreimages(ctx, htlcSet)
|
||||
if failRes != nil {
|
||||
update.UpdateType = CancelInvoiceUpdate
|
||||
update.State = &InvoiceStateUpdateDesc{
|
||||
NewState: ContractCanceled,
|
||||
SetID: setID,
|
||||
|
||||
Reference in new issue
Block a user