mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 13:42:49 +02:00
cmd/lncli: add json attribute tag for anonymous ChannelPoint struct
This commit is contained in:
@@ -180,7 +180,7 @@ func openChannel(ctx *cli.Context) {
|
|||||||
|
|
||||||
index := resp.ChannelPoint.OutputIndex
|
index := resp.ChannelPoint.OutputIndex
|
||||||
printRespJson(struct {
|
printRespJson(struct {
|
||||||
ChannelPoint string
|
ChannelPoint string `json:"channel_point"`
|
||||||
}{
|
}{
|
||||||
ChannelPoint: fmt.Sprintf("%v:%v", txid, index),
|
ChannelPoint: fmt.Sprintf("%v:%v", txid, index),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user