| 1833 | } |
| 1834 | |
| 1835 | static 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) */ |
| 1846 | static void try_connect_peer(struct daemon *daemon, |
no test coverage detected