Set private setting for invoice

This commit is contained in:
ErikEk 2018-11-26 09:05:37 +01:00
parent d3b44542d3
commit 6884fe40db

@ -2950,6 +2950,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),