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

Function param_payment_status

lightningd/pay.c:1549–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1547AUTODATA(json_command, &waitsendpay_command);
1548
1549static struct command_result *param_payment_status(struct command *cmd,
1550 const char *name,
1551 const char *buffer,
1552 const jsmntok_t *tok,
1553 enum wallet_payment_status **status)
1554{
1555 *status = tal(cmd, enum wallet_payment_status);
1556 if (string_to_payment_status(buffer + tok->start,
1557 tok->end - tok->start,
1558 *status))
1559 return NULL;
1560
1561 return command_fail_badparam(cmd, name, buffer, tok,
1562 "should be an invoice status");
1563}
1564
1565static struct command_result *json_listsendpays(struct command *cmd,
1566 const char *buffer,

Callers 1

Calls 2

string_to_payment_statusFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected