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