MCPcopy Create free account
hub / github.com/ElementsProject/lightning / checkrune_failed

Function checkrune_failed

plugins/commando.c:347–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347static struct command_result *checkrune_failed(struct command *cmd,
348 const char *method,
349 const char *buf,
350 const jsmntok_t *result,
351 struct cond_info *cinfo)
352{
353 const jsmntok_t *msg = json_get_member(buf, result, "message");
354
355 if (!msg) {
356 plugin_err(plugin, "Invalid checkrune error %.*s",
357 json_tok_full_len(result),
358 json_tok_full(buf, result));
359 }
360
361 return commando_error(cmd, cinfo->incoming,
362 COMMANDO_ERROR_REMOTE_AUTH,
363 "Invalid rune: %.*s",
364 msg->end - msg->start, buf + msg->start);
365}
366
367static struct command_result *try_command(struct command *cmd,
368 struct commando *incoming STEALS)

Callers

nothing calls this directly

Calls 5

json_get_memberFunction · 0.85
commando_errorFunction · 0.85
plugin_errFunction · 0.70
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected