| 42 | } |
| 43 | |
| 44 | int AddrInfo::GetBucketPosition(const uint256& nKey, bool fNew, int bucket) const |
| 45 | { |
| 46 | uint64_t hash1 = (HashWriter{} << nKey << (fNew ? uint8_t{'N'} : uint8_t{'K'}) << bucket << GetKey()).GetCheapHash(); |
| 47 | return hash1 % ADDRMAN_BUCKET_SIZE; |
| 48 | } |
| 49 | |
| 50 | bool AddrInfo::IsTerrible(NodeSeconds now) const |
| 51 | { |
no test coverage detected