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

Function log_payment_err

plugins/xpay/xpay.c:2142–2154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2140}
2141
2142static struct command_result *log_payment_err(struct command *aux_cmd,
2143 const char *methodname,
2144 const char *buf,
2145 const jsmntok_t *result,
2146 struct payment *payment)
2147{
2148 payment_log(payment, LOG_UNUSUAL,
2149 "%s failed: '%.*s'",
2150 methodname,
2151 json_tok_full_len(result),
2152 json_tok_full(buf, result));
2153 return command_still_pending(aux_cmd);
2154}
2155
2156/* Create a layer with our payment-specific topology information */
2157static struct command_result *populate_private_layer(struct command *cmd,

Callers

nothing calls this directly

Calls 4

payment_logFunction · 0.85
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50
command_still_pendingFunction · 0.50

Tested by

no test coverage detected