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
2020-11-24 19:05:14 -08:00
parent d996607470
commit 43fc84919e
6 changed files with 829 additions and 773 deletions

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 {