vote for a local address */
| 322 | |
| 323 | /** vote for a local address */ |
| 324 | bool SeenLocal(const CService& addr) |
| 325 | { |
| 326 | LOCK(g_maplocalhost_mutex); |
| 327 | const auto it = mapLocalHost.find(addr); |
| 328 | if (it == mapLocalHost.end()) return false; |
| 329 | it->second.nScore = SaturatingAdd(it->second.nScore, 1); |
| 330 | return true; |
| 331 | } |
| 332 | |
| 333 | |
| 334 | /** check whether a given address is potentially local */ |