| 19 | } |
| 20 | |
| 21 | static struct update_fail_malformed_htlc *decode(const tal_t *ctx, |
| 22 | const void *p) |
| 23 | { |
| 24 | struct update_fail_malformed_htlc *s = |
| 25 | tal(ctx, struct update_fail_malformed_htlc); |
| 26 | |
| 27 | if (fromwire_update_fail_malformed_htlc(p, &s->channel_id, &s->id, |
| 28 | &s->sha256_of_onion, |
| 29 | &s->failure_code)) |
| 30 | return s; |
| 31 | return tal_free(s); |
| 32 | } |
| 33 | |
| 34 | static bool equal(const struct update_fail_malformed_htlc *x, |
| 35 | const struct update_fail_malformed_htlc *y) |
nothing calls this directly
no test coverage detected