| 28 | } |
| 29 | |
| 30 | int CAddrInfo::GetBucketPosition(const uint256& nKey, bool fNew, int nBucket) const |
| 31 | { |
| 32 | uint64_t hash1 = (CHashWriter(SER_GETHASH, 0) << nKey << (fNew ? 'N' : 'K') << nBucket << GetKey()).GetHash().GetLow64(); |
| 33 | return hash1 % ADDRMAN_BUCKET_SIZE; |
| 34 | } |
| 35 | |
| 36 | bool CAddrInfo::IsTerrible(int64_t nNow) const |
| 37 | { |
no test coverage detected