mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
invoicerpc: add clarifying comment.
This commit is contained in:
parent
c95d73c898
commit
34e56b69e9
1 changed files with 9 additions and 7 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue