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

Function param_forward_status

lightningd/forwards.c:171–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static struct command_result *param_forward_status(struct command *cmd,
172 const char *name,
173 const char *buffer,
174 const jsmntok_t *tok,
175 enum forward_status **status)
176{
177 *status = tal(cmd, enum forward_status);
178 if (string_to_forward_status(buffer + tok->start,
179 tok->end - tok->start,
180 *status))
181 return NULL;
182
183 return command_fail_badparam(cmd, name, buffer, tok,
184 "Unrecognized status");
185}
186
187static struct command_result *json_listforwards(struct command *cmd,
188 const char *buffer,

Callers 1

param_forward_delstatusFunction · 0.85

Calls 2

string_to_forward_statusFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected