vote for a local address */
| 212 | |
| 213 | /** vote for a local address */ |
| 214 | bool SeenLocal(const CService& addr) { |
| 215 | { |
| 216 | LOCK(cs_mapLocalHost); |
| 217 | if (mapLocalHost.count(addr) == 0) |
| 218 | return false; |
| 219 | mapLocalHost[addr].nScore++; |
| 220 | } |
| 221 | |
| 222 | AdvertizeLocal(); |
| 223 | |
| 224 | return true; |
| 225 | } |
| 226 | |
| 227 | /** check whether a given address is potentially local */ |
| 228 | bool IsLocal(const CService& addr) { |
no test coverage detected