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>
This commit is contained in:
Rusty Russell
2018-12-05 12:33:46 +10:30
committed by Christian Decker
parent 692d8e9685
commit 001e215064

View File

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