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

Function payment_rpc_failure

plugins/libplugin-pay.c:191–200  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

189
190/* Generic handler for RPC failures that should end up failing the payment. */
191static struct command_result *payment_rpc_failure(struct command *cmd,
192 const char *buffer,
193 const jsmntok_t *toks,
194 struct payment *p)
195{
196 payment_fail(p,
197 "Failing a partial payment due to a failed RPC call: %.*s",
198 toks->end - toks->start, buffer + toks->start);
199 return command_still_pending(cmd);
200}
201
202struct payment_tree_result payment_collect_result(struct payment *p)
203{

Callers

nothing calls this directly

Calls 2

payment_failFunction · 0.85
command_still_pendingFunction · 0.70

Tested by

no test coverage detected