Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions plugins/xpay/xpay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,12 +1930,13 @@ static struct command_result *handle_rpc_command(struct command *cmd,
method_tok = json_get_member(buf, rpc_tok, "method");
params_tok = json_get_member(buf, rpc_tok, "params");
id_tok = json_get_member(buf, rpc_tok, "id");
plugin_log(cmd->plugin, LOG_DBG, "Got command %s",
json_strdup(tmpctx, buf, method_tok));

if (!json_tok_streq(buf, method_tok, "pay"))
goto dont_redirect;

plugin_log(cmd->plugin, LOG_DBG, "Got command %s",
json_strdup(tmpctx, buf, method_tok));

/* Array params? Only handle up to two args (bolt11, msat) */
if (params_tok->type == JSMN_ARRAY) {
if (params_tok->size != 1 && params_tok->size != 2) {
Expand Down
Loading