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

Function param_forward_status

lightningd/peer_htlcs.c:2899–2913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2897}
2898
2899static struct command_result *param_forward_status(struct command *cmd,
2900 const char *name,
2901 const char *buffer,
2902 const jsmntok_t *tok,
2903 enum forward_status **status)
2904{
2905 *status = tal(cmd, enum forward_status);
2906 if (string_to_forward_status(buffer + tok->start,
2907 tok->end - tok->start,
2908 *status))
2909 return NULL;
2910
2911 return command_fail_badparam(cmd, name, buffer, tok,
2912 "Unrecognized status");
2913}
2914
2915static struct command_result *json_listforwards(struct command *cmd,
2916 const char *buffer,

Callers 1

param_forward_delstatusFunction · 0.85

Calls 2

string_to_forward_statusFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected