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

Function dup_onionreply

common/onionreply.c:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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