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

Function mk_failed_htlc

lightningd/peer_htlcs.c:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static struct failed_htlc *mk_failed_htlc(const tal_t *ctx,
111 const struct htlc_in *hin,
112 const struct onionreply *failonion)
113{
114 struct failed_htlc *f = tal(ctx, struct failed_htlc);
115
116 f->id = hin->key.id;
117 f->sha256_of_onion = NULL;
118 f->badonion = 0;
119 /* Wrap onion error */
120 f->onion = wrap_onionreply(f, hin->shared_secret, failonion);
121
122 return f;
123}
124
125static void tell_channeld_htlc_failed(const struct htlc_in *hin,
126 const struct failed_htlc *failed_htlc)

Callers 2

fail_in_htlcFunction · 0.85
peer_htlcsFunction · 0.85

Calls 1

wrap_onionreplyFunction · 0.50

Tested by

no test coverage detected