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

Function param_payment_status

lightningd/pay.c:2188–2202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188static struct command_result *param_payment_status(struct command *cmd,
2189 const char *name,
2190 const char *buffer,
2191 const jsmntok_t *tok,
2192 enum payment_status **status)
2193{
2194 *status = tal(cmd, enum payment_status);
2195 if (string_to_payment_status(buffer + tok->start,
2196 tok->end - tok->start,
2197 *status))
2198 return NULL;
2199
2200 return command_fail_badparam(cmd, name, buffer, tok,
2201 "should be an invoice status");
2202}
2203
2204static struct command_result *json_listsendpays(struct command *cmd,
2205 const char *buffer,

Callers 1

Calls 2

string_to_payment_statusFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected