check whether a given address is potentially local */
| 356 | |
| 357 | /** check whether a given address is potentially local */ |
| 358 | bool IsLocal(const CService& addr) |
| 359 | { |
| 360 | LOCK(g_maplocalhost_mutex); |
| 361 | return mapLocalHost.count(addr) > 0; |
| 362 | } |
| 363 | |
| 364 | CNode* CConnman::FindNode(const CNetAddr& ip) |
| 365 | { |