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

Function tell_channeld_htlc_failed

lightningd/peer_htlcs.c:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void tell_channeld_htlc_failed(const struct htlc_in *hin,
126 const struct failed_htlc *failed_htlc)
127{
128 /* Tell peer, if we can. */
129 if (!hin->key.channel->owner)
130 return;
131
132 /* onchaind doesn't care, it can't do anything but wait */
133 if (!channel_active(hin->key.channel))
134 return;
135
136 subd_send_msg(hin->key.channel->owner,
137 take(towire_channeld_fail_htlc(NULL, failed_htlc)));
138}
139
140static void fail_in_htlc(struct htlc_in *hin,
141 const struct onionreply *failonion TAKES)

Callers 2

fail_in_htlcFunction · 0.85

Calls 3

channel_activeFunction · 0.85
subd_send_msgFunction · 0.70

Tested by

no test coverage detected