| 28 | } |
| 29 | |
| 30 | struct 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 | |
| 46 | struct htlc_in *channel_has_htlc_in(const struct channel *channel) |
| 47 | { |
no outgoing calls
no test coverage detected