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

Function param_rune

plugins/commando.c:710–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710static struct command_result *param_rune(struct command *cmd, const char *name,
711 const char * buffer, const jsmntok_t *tok,
712 struct rune **rune)
713{
714 *rune = rune_from_base64n(cmd, buffer + tok->start, tok->end - tok->start);
715 if (!*rune)
716 return command_fail_badparam(cmd, name, buffer, tok,
717 "should be base64 string");
718
719 return NULL;
720}
721
722static struct rune_restr **readonly_restrictions(const tal_t *ctx)
723{

Callers

nothing calls this directly

Calls 2

rune_from_base64nFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected