| 15 | } |
| 16 | |
| 17 | static struct onion_message *decode(const tal_t *ctx, const void *p) |
| 18 | { |
| 19 | struct onion_message *s = tal(ctx, struct onion_message); |
| 20 | |
| 21 | if (fromwire_onion_message(s, p, &s->path_key, &s->onionmsg)) |
| 22 | return s; |
| 23 | return tal_free(s); |
| 24 | } |
| 25 | |
| 26 | static bool equal(const struct onion_message *x, const struct onion_message *y) |
| 27 | { |
nothing calls this directly
no test coverage detected