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

Function payment_rpc_failure

plugins/libplugin-pay.c:218–227  ·  view source on GitHub ↗

Generic handler for RPC failures that should end up failing the payment. */

Source from the content-addressed store, hash-verified

216
217/* Generic handler for RPC failures that should end up failing the payment. */
218static struct command_result *payment_rpc_failure(struct command *cmd,
219 const char *method,
220 const char *buffer,
221 const jsmntok_t *toks,
222 struct payment *p)
223{
224 return payment_fail(p,
225 "Failing a partial payment due to a failed RPC call %s: %.*s",
226 method, toks->end - toks->start, buffer + toks->start);
227}
228
229struct payment_tree_result payment_collect_result(struct payment *p)
230{

Callers

nothing calls this directly

Calls 1

payment_failFunction · 0.70

Tested by

no test coverage detected