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

Function addr_in

connectd/connectd.c:1890–1898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1888}
1889
1890static bool addr_in(const struct wireaddr_internal *needle,
1891 const struct wireaddr_internal haystack[])
1892{
1893 for (size_t i = 0; i < tal_count(haystack); i++)
1894 if (wireaddr_internal_eq(needle, &haystack[i]))
1895 return true;
1896
1897 return false;
1898}
1899
1900/*~ Try to connect to a single peer, given some addresses (in order) */
1901static void try_connect_peer(struct daemon *daemon,

Callers 2

try_connect_peerFunction · 0.85
connect_to_peerFunction · 0.85

Calls 1

wireaddr_internal_eqFunction · 0.85

Tested by

no test coverage detected