Skip to content

Commit

Permalink
invoices: add CancelSet flag to HtlcModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Oct 25, 2024
1 parent c8aa7e3 commit ecc6127
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion invoices_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ type InvoiceHtlcModifyResponse struct {
// HTLC in case of custom channels. To not modify the amount and use the
// on-chain amount, set this to 0.
AmtPaid lnwire.MilliSatoshi

// CancelSet is a flag that indicates whether the HTLCs associated with
// the invoice should get cancelled.
CancelSet bool
}

// InvoiceHtlcModifyHandler is a function that handles an HTLC modification
Expand Down Expand Up @@ -379,7 +383,8 @@ func (s *invoicesClient) HtlcModifier(ctx context.Context,
ChanId: key.ChanID.ToUint64(),
HtlcId: key.HtlcID,
},
AmtPaid: &amtPaid,
AmtPaid: &amtPaid,
CancelSet: resp.CancelSet,
}

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

0 comments on commit ecc6127

Please sign in to comment.