Skip to content

Commit 34e56b6

Browse files
committed
invoicerpc: add clarifying comment.
1 parent c95d73c commit 34e56b6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lnrpc/invoicesrpc/utils.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@ func CreateRPCInvoice(invoice *invoices.Invoice,
187187
AmtPaidSat: int64(satAmtPaid),
188188
AmtPaidMsat: int64(invoice.AmtPaid),
189189
AmtPaid: int64(invoice.AmtPaid),
190-
State: state,
191-
Htlcs: rpcHtlcs,
192-
Features: CreateRPCFeatures(invoice.Terms.Features),
193-
IsKeysend: invoice.IsKeysend(),
194-
PaymentAddr: invoice.Terms.PaymentAddr[:],
195-
IsAmp: invoice.IsAMP(),
196-
IsBlinded: invoice.IsBlinded(),
190+
// This will be set to SETTLED if at least one of the AMP Sets
191+
// is settled (see below).
192+
State: state,
193+
Htlcs: rpcHtlcs,
194+
Features: CreateRPCFeatures(invoice.Terms.Features),
195+
IsKeysend: invoice.IsKeysend(),
196+
PaymentAddr: invoice.Terms.PaymentAddr[:],
197+
IsAmp: invoice.IsAMP(),
198+
IsBlinded: invoice.IsBlinded(),
197199
}
198200

199201
rpcInvoice.AmpInvoiceState = make(map[string]*lnrpc.AMPInvoiceState)

0 commit comments

Comments
 (0)