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

Function checkrune_failed

plugins/commando.c:350–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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