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

Function dup_onionreply

common/onionreply.c:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24struct onionreply *dup_onionreply(const tal_t *ctx,
25 const struct onionreply *r TAKES)
26{
27 struct onionreply *n;
28
29 if (taken(r))
30 return cast_const(struct onionreply *, tal_steal(ctx, r));
31
32 n = tal(ctx, struct onionreply);
33 n->contents = tal_dup_talarr(n, u8, r->contents);
34 return n;
35}
36
37struct onionreply *new_onionreply(const tal_t *ctx, const u8 *contents TAKES)
38{

Callers 3

fail_in_htlcFunction · 0.85
peer_failed_our_htlcFunction · 0.85
failed_htlc_dupFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected