From ced486e727bca49175982846ac155292d3b5cac7 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 18 Jan 2018 21:21:44 +0100 Subject: [PATCH] jsonrpc: Add the network name to the getinfo output Signed-off-by: Christian Decker --- lightningd/jsonrpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index d01728b77..a14346c4f 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -263,6 +263,7 @@ static void json_getinfo(struct command *cmd, } json_add_string(response, "version", version()); json_add_num(response, "blockheight", get_block_height(cmd->ld->topology)); + json_add_string(response, "network", get_chainparams(cmd->ld)->network_name); json_object_end(response); command_success(cmd, response); }