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

Function post_check

common/json_param.c:67–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static struct command_result *post_check(struct command *cmd,
68 struct param *params)
69{
70 struct param *first = params;
71 struct param *last = first + tal_count(params);
72
73 /* Make sure required params were provided. */
74 while (first != last && is_required(first->style)) {
75 if (!first->is_set) {
76 return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
77 "missing required parameter: %s",
78 first->name);
79 }
80 first++;
81 }
82 return NULL;
83}
84
85static struct command_result *parse_by_position(struct command *cmd,
86 struct param *params,

Callers 2

parse_by_positionFunction · 0.85
parse_by_nameFunction · 0.85

Calls 2

is_requiredFunction · 0.85
command_failFunction · 0.50

Tested by

no test coverage detected