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

Function channel_has_htlc_out

lightningd/channel.c:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

destroy_channelFunction · 0.70
json_dev_forget_channelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected