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
@@ -4766,6 +4766,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
AddIndex: dbInvoice.AddIndex,
PaymentRequest: string(dbInvoice.PaymentRequest),
RHash: hash[:],
PaymentAddr: dbInvoice.Terms.PaymentAddr[:],
}, nil
}