lncli: only add additional info to specific cmds.
We only append the chan_id and the human readable scid for the commands `listchannels` and `closedchannels`. This ensures that other commands like `buildroute` are not affected by this change so their output can be piped into other cmds. For some cmds it is not very practical to replace the json output because we might pipe it into other commands. For example when creating the route we want to pipe the result of buildroute into sendtoRoute.
This commit is contained in:
2 files changed
+19
-2
No files matched your search
@@ -1254,6 +1254,7 @@ func queryRoutes(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
printRespJSON(route)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user