cmd/lncli: display payment preimage in hex in sendpayment resp
This commit is contained in:
parent
2dfab8c6d7
commit
250c763c76
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user