| 1888 | } |
| 1889 | |
| 1890 | static 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) */ |
| 1901 | static void try_connect_peer(struct daemon *daemon, |
no test coverage detected