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

Function param_node_id

common/json_param.c:548–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548struct command_result *param_node_id(struct command *cmd, const char *name,
549 const char *buffer, const jsmntok_t *tok,
550 struct node_id **id)
551{
552 *id = tal(cmd, struct node_id);
553 if (json_to_node_id(buffer, tok, *id))
554 return NULL;
555
556 return command_fail_badparam(cmd, name, buffer, tok,
557 "should be a node id");
558}
559
560struct command_result *param_channel_id(struct command *cmd, const char *name,
561 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_node_idFunction · 0.70

Tested by

no test coverage detected