MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fromwire_struct_commitment_signed

Function fromwire_struct_commitment_signed

wire/test/run-peer-wire.c:546–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546static 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
560static void *towire_struct_revoke_and_ack(const tal_t *ctx,
561 const struct msg_revoke_and_ack *s)

Callers 1

mainFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected