| 330 | } |
| 331 | |
| 332 | void resend_closing_transactions(struct lightningd *ld) |
| 333 | { |
| 334 | struct peer *peer; |
| 335 | struct channel *channel; |
| 336 | |
| 337 | list_for_each(&ld->peers, peer, list) { |
| 338 | list_for_each(&peer->channels, channel, list) { |
| 339 | if (channel->state == CLOSINGD_COMPLETE) |
| 340 | drop_to_chain(ld, channel, true); |
| 341 | else if (channel->state == AWAITING_UNILATERAL) |
| 342 | drop_to_chain(ld, channel, false); |
| 343 | } |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | void channel_errmsg(struct channel *channel, |
| 348 | struct peer_fd *peer_fd, |