| 536 | } |
| 537 | |
| 538 | static void handle_irrevocably_resolved(struct channel *channel, const u8 *msg UNUSED) |
| 539 | { |
| 540 | /* FIXME: Implement check_htlcs to ensure no dangling hout->in ptrs! */ |
| 541 | free_htlcs(channel->peer->ld, channel); |
| 542 | |
| 543 | log_info(channel->log, "onchaind complete, forgetting peer"); |
| 544 | |
| 545 | /* This will also free onchaind. */ |
| 546 | delete_channel(channel, false); |
| 547 | } |
| 548 | |
| 549 | |
| 550 | /** |
no test coverage detected