mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 10:09:08 +02:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user