| 441 | } |
| 442 | |
| 443 | static void handle_irrevocably_resolved(struct channel *channel, const u8 *msg UNUSED) |
| 444 | { |
| 445 | /* FIXME: Implement check_htlcs to ensure no dangling hout->in ptrs! */ |
| 446 | free_htlcs(channel->peer->ld, channel); |
| 447 | |
| 448 | log_info(channel->log, "onchaind complete, forgetting peer"); |
| 449 | |
| 450 | /* This will also free onchaind. */ |
| 451 | delete_channel(channel); |
| 452 | } |
| 453 | |
| 454 | |
| 455 | /** |
no test coverage detected