Pretty printing paths */
| 227 | |
| 228 | /* Pretty printing paths */ |
| 229 | static 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 | |
| 240 | static void payment_log(struct payment *payment, |
| 241 | enum log_level level, |
no test coverage detected