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