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

Function channel_has_htlc_out

lightningd/channel.c:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30struct htlc_out *channel_has_htlc_out(const struct channel *channel)
31{
32 struct htlc_out_map_iter outi;
33 struct htlc_out *hout;
34 struct lightningd *ld = channel->peer->ld;
35
36 for (hout = htlc_out_map_first(ld->htlcs_out, &outi);
37 hout;
38 hout = htlc_out_map_next(ld->htlcs_out, &outi)) {
39 if (hout->key.channel == channel)
40 return hout;
41 }
42
43 return NULL;
44}
45
46struct htlc_in *channel_has_htlc_in(const struct channel *channel)
47{

Callers 4

destroy_channelFunction · 0.70
ignore_idle_channelFunction · 0.70
json_dev_forget_channelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected