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

Function fromwire_struct_update_fail_htlc

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

Source from the content-addressed store, hash-verified

500}
501
502static 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
515static void *towire_struct_update_fulfill_htlc(const tal_t *ctx,
516 const struct msg_update_fulfill_htlc *s)

Callers 1

mainFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected