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

Function peer_connected

tests/fuzz/fuzz-init_received.c:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 bool allow_localhost UNNEEDED)
41{ return false; }
42struct io_plan *peer_connected(struct io_conn *conn UNNEEDED,
43 struct daemon *daemon UNNEEDED,
44 const struct node_id *id UNNEEDED,
45 const struct wireaddr_internal *addr UNNEEDED,
46 const struct wireaddr *remote_addr UNNEEDED,
47 struct crypto_state *cs UNNEEDED,
48 const u8 *their_features TAKES UNNEEDED,
49 enum is_websocket is_websocket UNNEEDED,
50 struct timemono starttime,
51 bool incoming UNNEEDED)
52{ if (taken(their_features))
53 tal_steal(tmpctx, their_features);
54 return io_close(conn);
55}
56/* MOCKS END */
57
58/* These functions are only called when `peer_init_received()`

Callers

nothing calls this directly

Calls 2

takenFunction · 0.85
io_closeFunction · 0.85

Tested by

no test coverage detected