Skip to content

Commit bd71857

Browse files
committed
invoices: add CancelSet flag to HtlcModifier
1 parent 3104fa5 commit bd71857

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

invoices_client.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ type InvoiceHtlcModifyResponse struct {
5454
// HTLC in case of custom channels. To not modify the amount and use the
5555
// on-chain amount, set this to 0.
5656
AmtPaid lnwire.MilliSatoshi
57+
58+
// CancelSet is a flag that indicates whether the HTLCs associated with
59+
// the invoice should get cancelled.
60+
CancelSet bool
5761
}
5862

5963
// InvoiceHtlcModifyHandler is a function that handles an HTLC modification
@@ -379,7 +383,8 @@ func (s *invoicesClient) HtlcModifier(ctx context.Context,
379383
ChanId: key.ChanID.ToUint64(),
380384
HtlcId: key.HtlcID,
381385
},
382-
AmtPaid: &amtPaid,
386+
AmtPaid: &amtPaid,
387+
CancelSet: resp.CancelSet,
383388
}
384389

385390
if err := stream.Send(rpcResp); err != nil {

0 commit comments

Comments
 (0)