| 24 | } |
| 25 | |
| 26 | static struct update_add_htlc *decode(const tal_t *ctx, const void *p) |
| 27 | { |
| 28 | struct update_add_htlc *s = tal(ctx, struct update_add_htlc); |
| 29 | |
| 30 | if (fromwire_update_add_htlc( |
| 31 | s, p, &s->channel_id, &s->id, &s->amount_msat, &s->payment_hash, |
| 32 | &s->expiry, s->onion_routing_packet, &s->tlvs)) |
| 33 | return s; |
| 34 | return tal_free(s); |
| 35 | } |
| 36 | |
| 37 | static bool equal(const struct update_add_htlc *x, |
| 38 | const struct update_add_htlc *y) |
nothing calls this directly
no test coverage detected