| 3626 | } |
| 3627 | |
| 3628 | static void handle_send_error(struct peer *peer, const u8 *msg) |
| 3629 | { |
| 3630 | char *reason; |
| 3631 | if (!fromwire_channeld_send_error(msg, msg, &reason)) |
| 3632 | master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg); |
| 3633 | status_debug("Send error reason: %s", reason); |
| 3634 | peer_write(peer->pps, |
| 3635 | take(towire_errorfmt(NULL, &peer->channel_id, |
| 3636 | "%s", reason))); |
| 3637 | |
| 3638 | wire_sync_write(MASTER_FD, |
| 3639 | take(towire_channeld_send_error_reply(NULL))); |
| 3640 | exit(0); |
| 3641 | } |
| 3642 | |
| 3643 | #if DEVELOPER |
| 3644 | static void handle_dev_reenable_commit(struct peer *peer) |
no test coverage detected