mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
committed by
Christian Decker
parent
692d8e9685
commit
001e215064
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user