| 544 | } |
| 545 | |
| 546 | static struct msg_commitment_signed *fromwire_struct_commitment_signed(const tal_t *ctx, const void *p) |
| 547 | { |
| 548 | struct msg_commitment_signed *s = tal(ctx, struct msg_commitment_signed); |
| 549 | s->tlvs = tlv_commitment_signed_tlvs_new(ctx); |
| 550 | |
| 551 | if (!fromwire_commitment_signed(s, p, |
| 552 | &s->channel_id, |
| 553 | &s->signature, |
| 554 | &s->htlc_signature, |
| 555 | &s->tlvs)) |
| 556 | return tal_free(s); |
| 557 | return s; |
| 558 | } |
| 559 | |
| 560 | static void *towire_struct_revoke_and_ack(const tal_t *ctx, |
| 561 | const struct msg_revoke_and_ack *s) |