| 27 | } |
| 28 | |
| 29 | static struct channel_update *decode(const tal_t *ctx, const void *p) |
| 30 | { |
| 31 | struct channel_update *s = tal(ctx, struct channel_update); |
| 32 | |
| 33 | if (fromwire_channel_update( |
| 34 | p, &s->signature, &s->chain_hash, &s->short_channel_id, |
| 35 | &s->timestamp, &s->message_flags, &s->channel_flags, |
| 36 | &s->cltv_expiry_delta, &s->htlc_minimum_msat, &s->fee_base_msat, |
| 37 | &s->fee_proportional_millionths, &s->htlc_maximum_msat)) |
| 38 | return s; |
| 39 | return tal_free(s); |
| 40 | } |
| 41 | |
| 42 | static bool equal(const struct channel_update *x, |
| 43 | const struct channel_update *y) |
nothing calls this directly
no test coverage detected