lnrpc+invoices: add cancelSet to HtlcModifier interface

This commit is contained in:
George Tsagkarelis
2024-10-18 12:40:50 +02:00
parent e488002db5
commit 1c17356fdc
5 changed files with 39 additions and 8 deletions

View File

@@ -247,6 +247,12 @@ type HtlcModifyResponse struct {
// HTLC was originally sent with, in case additional value is carried
// along with it (which might be the case in custom channels).
AmountPaid lnwire.MilliSatoshi
// CancelSet is a flag the interceptor client can set to force a
// cancellation of all HTLCs associated with the invoice that are
// currently accepted. Setting this field will ignore the AmountPaid
// field.
CancelSet bool
}
// HtlcModifyCallback is a function that is called when an invoice is