check whether a given address is potentially local */
| 277 | |
| 278 | /** check whether a given address is potentially local */ |
| 279 | bool IsLocal(const CService& addr) |
| 280 | { |
| 281 | LOCK(cs_mapLocalHost); |
| 282 | return mapLocalHost.count(addr) > 0; |
| 283 | } |
| 284 | |
| 285 | /** check whether a given network is one we can probably connect to */ |
| 286 | bool IsReachable(enum Network net) |
no test coverage detected