invoicerpc: add clarifying comment.
This commit is contained in:
1 file changed
+9
-7
@@ -187,13 +187,15 @@ func CreateRPCInvoice(invoice *invoices.Invoice,
|
|||||||
AmtPaidSat: int64(satAmtPaid),
|
AmtPaidSat: int64(satAmtPaid),
|
||||||
AmtPaidMsat: int64(invoice.AmtPaid),
|
AmtPaidMsat: int64(invoice.AmtPaid),
|
||||||
AmtPaid: int64(invoice.AmtPaid),
|
AmtPaid: int64(invoice.AmtPaid),
|
||||||
State: state,
|
// This will be set to SETTLED if at least one of the AMP Sets
|
||||||
Htlcs: rpcHtlcs,
|
// is settled (see below).
|
||||||
Features: CreateRPCFeatures(invoice.Terms.Features),
|
State: state,
|
||||||
IsKeysend: invoice.IsKeysend(),
|
Htlcs: rpcHtlcs,
|
||||||
PaymentAddr: invoice.Terms.PaymentAddr[:],
|
Features: CreateRPCFeatures(invoice.Terms.Features),
|
||||||
IsAmp: invoice.IsAMP(),
|
IsKeysend: invoice.IsKeysend(),
|
||||||
IsBlinded: invoice.IsBlinded(),
|
PaymentAddr: invoice.Terms.PaymentAddr[:],
|
||||||
|
IsAmp: invoice.IsAMP(),
|
||||||
|
IsBlinded: invoice.IsBlinded(),
|
||||||
}
|
}
|
||||||
|
|
||||||
rpcInvoice.AmpInvoiceState = make(map[string]*lnrpc.AMPInvoiceState)
|
rpcInvoice.AmpInvoiceState = make(map[string]*lnrpc.AMPInvoiceState)
|
||||||
|
|||||||
Reference in new issue
Block a user