cmd/lncli/commands: add include_channels flag to getnodeinfo

This commit is contained in:
Conner Fromknecht 2019-06-17 11:30:38 -07:00
parent 0adc45ab5a
commit 1c7ad4428c
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -2925,6 +2925,11 @@ var getNodeInfoCommand = cli.Command{
Usage: "the 33-byte hex-encoded compressed public of the target " +
"node",
},
cli.BoolFlag{
Name: "include_channels",
Usage: "if true, will return all known channels " +
"associated with the node",
},
},
Action: actionDecorator(getNodeInfo),
}
@ -2947,7 +2952,8 @@ func getNodeInfo(ctx *cli.Context) error {
}
req := &lnrpc.NodeInfoRequest{
PubKey: pubKey,
PubKey: pubKey,
IncludeChannels: ctx.Bool("include_channels"),
}
nodeInfo, err := client.GetNodeInfo(ctxb, req)