mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
CCoinsKeyHasher::operator() should return size_t
It currently returns uint64_t, which on older boost (at least 1.46) causes test failures on 32-bit systems. This problem was introduced in bc42503. Fixes #4634.
This commit is contained in:
parent
8d0d512bde
commit
6c23b08203
@ -247,7 +247,10 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
CCoinsKeyHasher();
|
CCoinsKeyHasher();
|
||||||
uint64_t operator()(const uint256& key) const {
|
// This *must* return size_t. With Boost 1.46 on 32-bit systems the
|
||||||
|
// unordered_map will behave unpredictably if the custom hasher returns a
|
||||||
|
// uint64_t, resulting in failures when syncing the chain (#4634).
|
||||||
|
size_t operator()(const uint256& key) const {
|
||||||
return key.GetHash(salt);
|
return key.GetHash(salt);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user