| 392 | } |
| 393 | |
| 394 | static void send_shutdown(struct state *state, const u8 *final_scriptpubkey) |
| 395 | { |
| 396 | u8 *msg; |
| 397 | |
| 398 | /* FIXME: send wrong_funding */ |
| 399 | msg = towire_shutdown(NULL, &state->channel_id, |
| 400 | final_scriptpubkey, NULL); |
| 401 | peer_write(state->pps, take(msg)); |
| 402 | state->shutdown_sent[LOCAL] = true; |
| 403 | } |
| 404 | |
| 405 | static void handle_peer_shutdown(struct state *state, u8 *msg) |
| 406 | { |
no test coverage detected