~ These are the mirror functions for the connecting-out case. */
| 563 | |
| 564 | /*~ These are the mirror functions for the connecting-out case. */ |
| 565 | static struct io_plan *handshake_out_success(struct io_conn *conn, |
| 566 | const struct pubkey *key, |
| 567 | const struct wireaddr_internal *addr, |
| 568 | struct crypto_state *cs, |
| 569 | struct oneshot *timeout, |
| 570 | struct connecting *connect) |
| 571 | { |
| 572 | struct node_id id; |
| 573 | |
| 574 | node_id_from_pubkey(&id, key); |
| 575 | connect->connstate = "Exchanging init messages"; |
| 576 | status_peer_debug(&id, "Connect OUT"); |
| 577 | return peer_exchange_initmsg(conn, connect->daemon, |
| 578 | connect->daemon->our_features, |
| 579 | cs, &id, addr, timeout, false); |
| 580 | } |
| 581 | |
| 582 | struct io_plan *connection_out(struct io_conn *conn, struct connecting *connect) |
| 583 | { |
nothing calls this directly
no test coverage detected