vote for a local address */
| 335 | |
| 336 | /** vote for a local address */ |
| 337 | bool SeenLocal(const CService& addr) |
| 338 | { |
| 339 | { |
| 340 | LOCK(cs_mapLocalHost); |
| 341 | if (mapLocalHost.count(addr) == 0) |
| 342 | return false; |
| 343 | mapLocalHost[addr].nScore++; |
| 344 | } |
| 345 | return true; |
| 346 | } |
| 347 | |
| 348 | |
| 349 | /** check whether a given address is potentially local */ |