| 152 | } |
| 153 | |
| 154 | void dump_htlcs(const struct channel *channel, const char *prefix) |
| 155 | { |
| 156 | #ifdef SUPERVERBOSE |
| 157 | struct htlc_map_iter it; |
| 158 | const struct htlc *htlc; |
| 159 | |
| 160 | for (htlc = htlc_map_first(channel->htlcs, &it); |
| 161 | htlc; |
| 162 | htlc = htlc_map_next(channel->htlcs, &it)) { |
| 163 | dump_htlc(htlc, prefix); |
| 164 | } |
| 165 | #endif |
| 166 | } |
| 167 | |
| 168 | /* Returns up to three arrays: |
| 169 | * committed: HTLCs currently committed. |
no test coverage detected