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

Function log_payment_err

plugins/xpay/xpay.c:2073–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071}
2072
2073static struct command_result *log_payment_err(struct command *aux_cmd,
2074 const char *methodname,
2075 const char *buf,
2076 const jsmntok_t *result,
2077 struct payment *payment)
2078{
2079 payment_log(payment, LOG_UNUSUAL,
2080 "%s failed: '%.*s'",
2081 methodname,
2082 json_tok_full_len(result),
2083 json_tok_full(buf, result));
2084 return command_still_pending(aux_cmd);
2085}
2086
2087/* Create a layer with our payment-specific topology information */
2088static 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