Skip to content

Commit

Permalink
Revert "runes: fix checkrune when method parameter is the empty s…
Browse files Browse the repository at this point in the history
…tring."

This reverts commit ae94be4.
  • Loading branch information
rustyrussell committed Oct 16, 2023
1 parent 2e08944 commit 634998d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lightningd/runes.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 634998d

Please sign in to comment.