Resolve a close command for a channel that will be closed soon. */
| 80 | |
| 81 | /* Resolve a close command for a channel that will be closed soon. */ |
| 82 | void resolve_close_command(struct lightningd *ld, struct channel *channel, |
| 83 | bool cooperative, const struct bitcoin_tx **close_txs) |
| 84 | { |
| 85 | struct close_command *cc; |
| 86 | struct close_command *n; |
| 87 | |
| 88 | list_for_each_safe(&ld->close_commands, cc, n, list) { |
| 89 | if (cc->channel != channel) |
| 90 | continue; |
| 91 | resolve_one_close_command(cc, cooperative, close_txs); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /* Destroy the close command structure in reaction to the |
| 96 | * channel being destroyed. */ |
no test coverage detected