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

Function fromwire_onionreply

common/onionreply.c:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13struct onionreply *fromwire_onionreply(const tal_t *ctx,
14 const u8 **cursor, size_t *max)
15{
16 struct onionreply *r = tal(ctx, struct onionreply);
17 r->contents = fromwire_tal_arrn(r, cursor, max,
18 fromwire_u16(cursor, max));
19 if (!*cursor)
20 return tal_free(r);
21 return r;
22}
23
24struct onionreply *dup_onionreply(const tal_t *ctx,
25 const struct onionreply *r TAKES)

Callers 1

fromwire_failed_htlcFunction · 0.85

Calls 3

tal_freeFunction · 0.85
fromwire_tal_arrnFunction · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected