Revert "runes: fix checkrune when method parameter is the empty string."

This reverts commit ae94be4ce2.
This commit is contained in:
Rusty Russell 2023-10-13 11:16:49 +10:30
parent c0782ee841
commit 03e51ae879

View File

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