From 1c7ad4428c91ba1ead31f629958aa9d4392f9f44 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 17 Jun 2019 11:30:38 -0700 Subject: [PATCH] cmd/lncli/commands: add include_channels flag to getnodeinfo --- cmd/lncli/commands.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 3be355cb..d2f9414e 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -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)