@@ -14,12 +14,12 @@ int CAddrInfo::GetTriedBucket(const std::vector<unsigned char> &nKey) const
14
14
CDataStream ss1 (SER_GETHASH, 0 );
15
15
std::vector<unsigned char > vchKey = GetKey ();
16
16
ss1 << nKey << vchKey;
17
- uint64_t hash1 = Hash (ss1.begin (), ss1.end ()).Get64 ();
17
+ uint64_t hash1 = Hash (ss1.begin (), ss1.end ()).GetLow64 ();
18
18
19
19
CDataStream ss2 (SER_GETHASH, 0 );
20
20
std::vector<unsigned char > vchGroupKey = GetGroup ();
21
21
ss2 << nKey << vchGroupKey << (hash1 % ADDRMAN_TRIED_BUCKETS_PER_GROUP);
22
- uint64_t hash2 = Hash (ss2.begin (), ss2.end ()).Get64 ();
22
+ uint64_t hash2 = Hash (ss2.begin (), ss2.end ()).GetLow64 ();
23
23
return hash2 % ADDRMAN_TRIED_BUCKET_COUNT;
24
24
}
25
25
@@ -29,11 +29,11 @@ int CAddrInfo::GetNewBucket(const std::vector<unsigned char> &nKey, const CNetAd
29
29
std::vector<unsigned char > vchGroupKey = GetGroup ();
30
30
std::vector<unsigned char > vchSourceGroupKey = src.GetGroup ();
31
31
ss1 << nKey << vchGroupKey << vchSourceGroupKey;
32
- uint64_t hash1 = Hash (ss1.begin (), ss1.end ()).Get64 ();
32
+ uint64_t hash1 = Hash (ss1.begin (), ss1.end ()).GetLow64 ();
33
33
34
34
CDataStream ss2 (SER_GETHASH, 0 );
35
35
ss2 << nKey << vchSourceGroupKey << (hash1 % ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP);
36
- uint64_t hash2 = Hash (ss2.begin (), ss2.end ()).Get64 ();
36
+ uint64_t hash2 = Hash (ss2.begin (), ss2.end ()).GetLow64 ();
37
37
return hash2 % ADDRMAN_NEW_BUCKET_COUNT;
38
38
}
39
39
0 commit comments