mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
getinfo: remove testnet flag and have network flag instead.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
0170224fd0
commit
77bcaf0a25
1 changed files with 2 additions and 1 deletions
|
@ -241,7 +241,8 @@ static void json_getinfo(struct command *cmd,
|
|||
/* FIXME: Keep netaddrs and list them all. */
|
||||
if (cmd->dstate->portnum)
|
||||
json_add_num(response, "port", cmd->dstate->portnum);
|
||||
json_add_bool(response, "testnet", cmd->dstate->testnet);
|
||||
json_add_string(response, "network",
|
||||
ld_from_dstate(cmd->dstate)->chainparams->network_name);
|
||||
json_add_string(response, "version", version());
|
||||
json_add_num(response, "blockheight",
|
||||
get_block_height(cmd->dstate->topology));
|
||||
|
|
Loading…
Add table
Reference in a new issue