| 86 | } |
| 87 | |
| 88 | static inline const char *fmt_routekey(const tal_t *ctx, |
| 89 | const struct routekey *k) |
| 90 | { |
| 91 | char *str = tal_fmt( |
| 92 | ctx, |
| 93 | "key: groupid=%" PRIu64 ", partid=%" PRIu64 ", payment_hash=%s", |
| 94 | k->groupid, k->partid, |
| 95 | fmt_sha256(ctx, &k->payment_hash)); |
| 96 | return str; |
| 97 | } |
| 98 | |
| 99 | static inline const struct routekey *route_get_key(const struct route *route) |
| 100 | { |