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

Function fmt_path

plugins/xpay/xpay.c:229–238  ·  view source on GitHub ↗

Pretty printing paths */

Source from the content-addressed store, hash-verified

227
228/* Pretty printing paths */
229static const char *fmt_path(const tal_t *ctx,
230 const struct attempt *attempt)
231{
232 char *s = tal_strdup(ctx, "");
233 for (size_t i = 0; i < tal_count(attempt->hops); i++) {
234 tal_append_fmt(&s, "->%s",
235 fmt_pubkey(tmpctx, &attempt->hops[i].next_node));
236 }
237 return s;
238}
239
240static void payment_log(struct payment *payment,
241 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