| 6768 | } |
| 6769 | |
| 6770 | static void handle_send_error(struct peer *peer, const u8 *msg) |
| 6771 | { |
| 6772 | char *reason; |
| 6773 | if (!fromwire_channeld_send_error(msg, msg, &reason)) |
| 6774 | master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg); |
| 6775 | status_debug("Send error reason: %s", reason); |
| 6776 | peer_write(peer->pps, |
| 6777 | take(towire_errorfmt(NULL, &peer->channel_id, |
| 6778 | "%s", reason))); |
| 6779 | |
| 6780 | wire_sync_write(MASTER_FD, |
| 6781 | take(towire_channeld_send_error_reply(NULL))); |
| 6782 | exit(0); |
| 6783 | } |
| 6784 | |
| 6785 | static void handle_dev_reenable_commit(struct peer *peer) |
| 6786 | { |
no test coverage detected