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

Function fmt_path

plugins/xpay/xpay.c:234–243  ·  view source on GitHub ↗

Pretty printing paths */

Source from the content-addressed store, hash-verified

232
233/* Pretty printing paths */
234static const char *fmt_path(const tal_t *ctx,
235 const struct attempt *attempt)
236{
237 char *s = tal_strdup(ctx, "");
238 for (size_t i = 0; i < tal_count(attempt->hops); i++) {
239 tal_append_fmt(&s, "->%s",
240 fmt_pubkey(tmpctx, &attempt->hops[i].next_node));
241 }
242 return s;
243}
244
245static void payment_log(struct payment *payment,
246 enum log_level level,

Callers 2

attempt_logFunction · 0.85

Calls 2

tal_append_fmtFunction · 0.85
fmt_pubkeyFunction · 0.85

Tested by

no test coverage detected