| 429 | } |
| 430 | |
| 431 | static void connectd_peer_gone(struct daemon *daemon, const u8 *msg) |
| 432 | { |
| 433 | struct node_id id; |
| 434 | struct peer *peer; |
| 435 | |
| 436 | if (!fromwire_gossipd_peer_gone(msg, &id)) { |
| 437 | status_failed(STATUS_FAIL_INTERNAL_ERROR, |
| 438 | "Bad peer_gone msg from connectd: %s", |
| 439 | tal_hex(tmpctx, msg)); |
| 440 | } |
| 441 | |
| 442 | peer = find_peer(daemon, &id); |
| 443 | if (!peer) |
| 444 | status_broken("Peer %s already gone?", |
| 445 | type_to_string(tmpctx, struct node_id, &id)); |
| 446 | tal_free(peer); |
| 447 | } |
| 448 | |
| 449 | /*~ lightningd asks us if we know any addresses for a given id. */ |
| 450 | static struct io_plan *handle_get_address(struct io_conn *conn, |
no test coverage detected