From 001e2150644ea4fd02abf3b657f8584febb9ade0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 5 Dec 2018 12:33:46 +1030 Subject: [PATCH] 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 --- lightningd/jsonrpc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 1ccd0ed29..dd607ecb1 100644 --- a/lightningd/jsonrpc.c +++ b/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); }