cmd/lncli: display zpay32 request in addinvoice response
This commit is contained in:
parent
19bf044bdb
commit
5a9be3f812
@ -657,9 +657,11 @@ func addInvoice(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printRespJson(struct {
|
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
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user