MCPcopy Create free account
hub / github.com/ElementsProject/lightning / handshake_out_success

Function handshake_out_success

connectd/connectd.c:565–580  ·  view source on GitHub ↗

~ These are the mirror functions for the connecting-out case. */

Source from the content-addressed store, hash-verified

563
564/*~ These are the mirror functions for the connecting-out case. */
565static 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
582struct io_plan *connection_out(struct io_conn *conn, struct connecting *connect)
583{

Callers

nothing calls this directly

Calls 2

node_id_from_pubkeyFunction · 0.85
peer_exchange_initmsgFunction · 0.85

Tested by

no test coverage detected