vote for a local address */
| 264 | |
| 265 | /** vote for a local address */ |
| 266 | bool SeenLocal(const CService& addr) |
| 267 | { |
| 268 | { |
| 269 | LOCK(cs_mapLocalHost); |
| 270 | if (mapLocalHost.count(addr) == 0) |
| 271 | return false; |
| 272 | mapLocalHost[addr].nScore++; |
| 273 | } |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | |
| 278 | /** check whether a given address is potentially local */ |