mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
jsonrpc: Add the network name to the getinfo output
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
@@ -263,6 +263,7 @@ static void json_getinfo(struct command *cmd,
|
|||||||
}
|
}
|
||||||
json_add_string(response, "version", version());
|
json_add_string(response, "version", version());
|
||||||
json_add_num(response, "blockheight", get_block_height(cmd->ld->topology));
|
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);
|
json_object_end(response);
|
||||||
command_success(cmd, response);
|
command_success(cmd, response);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user