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

Function param_node_id

common/json_param.c:636–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636struct command_result *param_node_id(struct command *cmd, const char *name,
637 const char *buffer, const jsmntok_t *tok,
638 struct node_id **id)
639{
640 *id = tal(cmd, struct node_id);
641 if (json_to_node_id(buffer, tok, *id))
642 return NULL;
643
644 return command_fail_badparam(cmd, name, buffer, tok,
645 "should be a node id");
646}
647
648struct command_result *param_channel_id(struct command *cmd, const char *name,
649 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

json_to_node_idFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected