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

@ -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
}