| 6629 | } |
| 6630 | |
| 6631 | static void handle_send_error(struct peer *peer, const u8 *msg) |
| 6632 | { |
| 6633 | char *reason; |
| 6634 | if (!fromwire_channeld_send_error(msg, msg, &reason)) |
| 6635 | master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg); |
| 6636 | status_debug("Send error reason: %s", reason); |
| 6637 | peer_write(peer->pps, |
| 6638 | take(towire_errorfmt(NULL, &peer->channel_id, |
| 6639 | "%s", reason))); |
| 6640 | |
| 6641 | wire_sync_write(MASTER_FD, |
| 6642 | take(towire_channeld_send_error_reply(NULL))); |
| 6643 | exit(0); |
| 6644 | } |
| 6645 | |
| 6646 | static void handle_dev_reenable_commit(struct peer *peer) |
| 6647 | { |
no test coverage detected