mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 00:42:58 +02:00
cmd/lncli: display payment preimage in hex in sendpayment resp
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user