From f3f33dceb197ca2ad3905810cc28e0720e565317 Mon Sep 17 00:00:00 2001 From: darosior Date: Mon, 5 Aug 2019 12:49:59 +0200 Subject: [PATCH] lightningd/jsonrpc: Remove unused dev-rhash command code 'dev-rhash' is now part of the 'dev' multiplex command --- lightningd/jsonrpc.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index e6765afb8..dd8a960ec 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -223,34 +223,6 @@ static const struct json_command stop_command = { AUTODATA(json_command, &stop_command); #if DEVELOPER -static struct command_result *json_rhash(struct command *cmd, - const char *buffer, - const jsmntok_t *obj UNUSED, - const jsmntok_t *params) -{ - struct json_stream *response; - struct sha256 *secret; - - if (!param(cmd, buffer, params, - p_req("secret", param_sha256, &secret), - NULL)) - return command_param_failed(); - - /* Hash in place. */ - sha256(secret, secret, sizeof(*secret)); - response = json_stream_success(cmd); - json_add_hex(response, "rhash", secret, sizeof(*secret)); - return command_success(cmd, response); -} - -static const struct json_command dev_rhash_command = { - "dev-rhash", - "developer", - json_rhash, - "Show SHA256 of {secret}" -}; -AUTODATA(json_command, &dev_rhash_command); - struct slowcmd { struct command *cmd; unsigned *msec;