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

Function initiator_handshake_

connectd/handshake.c:987–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985}
986
987struct io_plan *initiator_handshake_(struct io_conn *conn,
988 const struct pubkey *my_id,
989 const struct pubkey *their_id,
990 const struct wireaddr_internal *addr,
991 struct oneshot *timeout,
992 struct io_plan *(*cb)(struct io_conn *,
993 const struct pubkey *,
994 const struct wireaddr_internal *,
995 struct crypto_state *,
996 struct oneshot *timeout,
997 void *cbarg),
998 void *cbarg)
999{
1000 struct handshake *h = new_handshake(conn, their_id);
1001
1002 h->side = INITIATOR;
1003 h->my_id = *my_id;
1004 h->their_id = *their_id;
1005 h->addr = *addr;
1006 h->cbarg = cbarg;
1007 h->cb = cb;
1008 h->timeout = timeout;
1009
1010 return act_one_initiator(conn, h);
1011}

Callers

nothing calls this directly

Calls 2

new_handshakeFunction · 0.85
act_one_initiatorFunction · 0.85

Tested by

no test coverage detected