mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
cmd/lncli/commands: add include_channels flag to getnodeinfo
This commit is contained in:
parent
0adc45ab5a
commit
1c7ad4428c
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue