From 03e51ae879eb99d2a18b3c205088bdfb993662c4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 13 Oct 2023 11:16:49 +1030 Subject: [PATCH] Revert "runes: fix `checkrune` when `method` parameter is the empty string." This reverts commit ae94be4ce2d51cdb7e119df1d45025372264aa57. --- lightningd/runes.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lightningd/runes.c b/lightningd/runes.c index c1dfe7e80..7a430ffdc 100644 --- a/lightningd/runes.c +++ b/lightningd/runes.c @@ -827,10 +827,7 @@ static struct command_result *json_checkrune(struct command *cmd, cinfo.runes = cmd->ld->runes; cinfo.peer = nodeid; cinfo.buf = buffer; - if (method != NULL && streq(method, "")) - cinfo.method = NULL; - else - cinfo.method = method; + cinfo.method = method; cinfo.params = methodparams; cinfo.now = time_now(); strmap_init(&cinfo.cached_params);