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

Function fromwire_struct_update_add_htlc

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

Source from the content-addressed store, hash-verified

701}
702
703static struct msg_update_add_htlc *fromwire_struct_update_add_htlc(const tal_t *ctx, const void *p)
704{
705 struct msg_update_add_htlc *s = tal(ctx, struct msg_update_add_htlc);
706
707 if (fromwire_update_add_htlc(s, p,
708 &s->channel_id,
709 &s->id,
710 &s->amount_msat,
711 &s->payment_hash,
712 &s->expiry,
713 s->onion_routing_packet,
714 &s->tlvs))
715 return s;
716 return tal_free(s);
717}
718
719
720static void *towire_struct_update_fee(const tal_t *ctx,

Callers 1

mainFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected