mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
Merge pull request #2222 from ErikEk/invoice_show_private
Invoices with --private marked as such on LookupInvoice
This commit is contained in:
commit
a9cba330e8
@ -3293,6 +3293,7 @@ func createRPCInvoice(invoice *channeldb.Invoice) (*lnrpc.Invoice, error) {
|
|||||||
FallbackAddr: fallbackAddr,
|
FallbackAddr: fallbackAddr,
|
||||||
RouteHints: routeHints,
|
RouteHints: routeHints,
|
||||||
AddIndex: invoice.AddIndex,
|
AddIndex: invoice.AddIndex,
|
||||||
|
Private: len(routeHints) > 0,
|
||||||
SettleIndex: invoice.SettleIndex,
|
SettleIndex: invoice.SettleIndex,
|
||||||
AmtPaidSat: int64(satAmtPaid),
|
AmtPaidSat: int64(satAmtPaid),
|
||||||
AmtPaidMsat: int64(invoice.AmtPaid),
|
AmtPaidMsat: int64(invoice.AmtPaid),
|
||||||
|
Loading…
Reference in New Issue
Block a user