| 218 | } |
| 219 | |
| 220 | static int GetnScore(const CService& addr) |
| 221 | { |
| 222 | LOCK(g_maplocalhost_mutex); |
| 223 | const auto it = mapLocalHost.find(addr); |
| 224 | return (it != mapLocalHost.end()) ? it->second.nScore : 0; |
| 225 | } |
| 226 | |
| 227 | // Is our peer's addrLocal potentially useful as an external IP source? |
| 228 | bool IsPeerAddrLocalGood(CNode *pnode) |
no test coverage detected