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