jsonrpc: Add the network name to the getinfo output

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-01-18 21:21:44 +01:00
parent f298c6b03e
commit ced486e727
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}