From 77bcaf0a25474862c2bb086b076cc76faff91a0d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 29 Aug 2017 01:38:01 +0930 Subject: [PATCH] getinfo: remove testnet flag and have network flag instead. Signed-off-by: Rusty Russell --- lightningd/jsonrpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 54a955eb9..fc6e7705d 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -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));