Browse Source

check: rename returned result to match incoming, remove redundant 'parameters': 'OK'.

check will actually do an RPC error, so if it doesn't, you know it's OK.

This would, of course, be in our man page if we had one :)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
plugin-6
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
001e215064
  1. 3
      lightningd/jsonrpc.c

3
lightningd/jsonrpc.c

@ -1020,8 +1020,7 @@ static void json_check(struct command *cmd,
response = json_stream_success(cmd);
json_object_start(response, NULL);
json_add_string(response, "command", cmd->json_cmd->name);
json_add_string(response, "parameters", "ok");
json_add_string(response, "command_to_check", cmd->json_cmd->name);
json_object_end(response);
command_success(cmd, response);
}

Loading…
Cancel
Save