dualopend is blocked reading the peer and can't hear a dualopend_fail, * so we tell the peer and kill it. channel_open_failed is what makes * funder unreserve. */
| 679 | * so we tell the peer and kill it. channel_open_failed is what makes |
| 680 | * funder unreserve. */ |
| 681 | static void accepter_negotiation_timeout(struct channel *channel) |
| 682 | { |
| 683 | struct lightningd *ld = channel->peer->ld; |
| 684 | const char *why = tal_fmt(tmpctx, |
| 685 | "Peer did not complete channel open" |
| 686 | " within %u seconds", |
| 687 | ld->dev_max_dualopen_negotiation_secs); |
| 688 | |
| 689 | subd_send_msg(ld->connectd, |
| 690 | take(towire_connectd_peer_send_msg(NULL, |
| 691 | &channel->peer->id, |
| 692 | channel->peer->connectd_counter, |
| 693 | towire_errorfmt(tmpctx, |
| 694 | &channel->cid, |
| 695 | "%s", why)))); |
| 696 | channel_cleanup_commands(channel, why); |
| 697 | channel_set_owner(channel, NULL); |
| 698 | forget_channel_open(channel, why); |
| 699 | } |
| 700 | |
| 701 | static void |
| 702 | openchannel2_hook_cb(struct openchannel2_payload *payload STEALS) |
nothing calls this directly
no test coverage detected