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

Function paymod_err

plugins/libplugin-pay.c:173–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 type, id, p->partid, txt);
172}
173static void
174paymod_err(struct payment *p, const char *fmt, ...)
175{
176 const char *type;
177 u64 id;
178 char *txt;
179 va_list ap;
180
181 va_start(ap, fmt);
182 txt = tal_vfmt(tmpctx, fmt, ap);
183 va_end(ap);
184
185 paymod_log_header(p, &type, &id);
186 plugin_err(p->plugin, "%s %"PRIu64" partid %"PRIu32": %s",
187 type, id, p->partid, txt);
188}
189
190/* Generic handler for RPC failures that should end up failing the payment. */
191static struct command_result *payment_rpc_failure(struct command *cmd,

Callers 4

payment_collect_resultFunction · 0.85
presplit_cbFunction · 0.85

Calls 2

paymod_log_headerFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected