Merge pull request #2222 from ErikEk/invoice_show_private

Invoices with --private marked as such on LookupInvoice
This commit is contained in:
Olaoluwa Osuntokun 2018-12-17 20:23:13 -08:00 committed by GitHub
commit a9cba330e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3293,6 +3293,7 @@ func createRPCInvoice(invoice *channeldb.Invoice) (*lnrpc.Invoice, error) {
FallbackAddr: fallbackAddr,
RouteHints: routeHints,
AddIndex: invoice.AddIndex,
Private: len(routeHints) > 0,
SettleIndex: invoice.SettleIndex,
AmtPaidSat: int64(satAmtPaid),
AmtPaidMsat: int64(invoice.AmtPaid),