From 5a9be3f81283f70b5c45b5699f952865906a47db Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 2 Jan 2017 15:37:10 -0800 Subject: [PATCH] cmd/lncli: display zpay32 request in addinvoice response --- cmd/lncli/commands.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 89e76b1d..957a877f 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -657,9 +657,11 @@ func addInvoice(ctx *cli.Context) error { } printRespJson(struct { - RHash string `json:"r_hash"` + RHash string `json:"r_hash"` + PayReq string `json:"pay_req"` }{ - RHash: hex.EncodeToString(resp.RHash), + RHash: hex.EncodeToString(resp.RHash), + PayReq: resp.PaymentRequest, }) return nil