| 500 | } |
| 501 | |
| 502 | static struct msg_update_fail_htlc *fromwire_struct_update_fail_htlc(const tal_t *ctx, const void *p) |
| 503 | { |
| 504 | struct msg_update_fail_htlc *s = tal(ctx, struct msg_update_fail_htlc); |
| 505 | |
| 506 | if (!fromwire_update_fail_htlc(ctx, p, |
| 507 | &s->channel_id, |
| 508 | &s->id, |
| 509 | &s->reason)) |
| 510 | return tal_free(s); |
| 511 | return s; |
| 512 | |
| 513 | } |
| 514 | |
| 515 | static void *towire_struct_update_fulfill_htlc(const tal_t *ctx, |
| 516 | const struct msg_update_fulfill_htlc *s) |