lnrpc: include payment addr in main Invoice proto

With this change ListInvoices will return the payment addr, and the
response to AddInvoice will as well.
This commit is contained in:
Olaoluwa Osuntokun committed 2020-11-25 16:32:05 -08:00
1 parent d996607470
commit 43fc84919e
6 files changed
+829 -773

No files matched your search

+1
View File
@@ -148,6 +148,7 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
Htlcs: rpcHtlcs,
Features: CreateRPCFeatures(invoice.Terms.Features),
IsKeysend: len(invoice.PaymentRequest) == 0,
PaymentAddr: invoice.Terms.PaymentAddr[:],
}
if preimage != nil {