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

Function addr_in

connectd/connectd.c:1835–1843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1833}
1834
1835static bool addr_in(const struct wireaddr_internal *needle,
1836 const struct wireaddr_internal haystack[])
1837{
1838 for (size_t i = 0; i < tal_count(haystack); i++)
1839 if (wireaddr_internal_eq(needle, &haystack[i]))
1840 return true;
1841
1842 return false;
1843}
1844
1845/*~ Try to connect to a single peer, given some addresses (in order) */
1846static 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