check whether a given address is potentially local */
| 226 | |
| 227 | /** check whether a given address is potentially local */ |
| 228 | bool IsLocal(const CService& addr) { |
| 229 | LOCK(cs_mapLocalHost); |
| 230 | return mapLocalHost.count(addr) > 0; |
| 231 | } |
| 232 | |
| 233 | /** check whether a given address is in a network we can probably connect to */ |
| 234 | bool IsReachable(const CNetAddr& addr) { |
no test coverage detected