cmd/lncli: display payment preimage in hex in sendpayment resp

This commit is contained in:
Olaoluwa Osuntokun 2017-02-20 23:58:17 -08:00
parent 2dfab8c6d7
commit 250c763c76
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -680,7 +680,13 @@ func sendPaymentCommand(ctx *cli.Context) error {
paymentStream.CloseSend()
printRespJson(resp)
printJson(struct {
P string `json:"payment_preimage"`
R *lnrpc.Route `json:"payment_route"`
}{
P: hex.EncodeToString(resp.PaymentPreimage),
R: resp.PaymentRoute,
})
return nil
}