diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-08 11:28:16 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-08 11:28:21 +0200 |
commit | f5d99075bfe57006270e7f6271b1340148f45b84 (patch) | |
tree | 5f0e782ae2179ec4922a61681206091f952be311 /src | |
parent | fffe947c486a7643362997cc4ca2ce207e7c761d (diff) | |
parent | 6c23b082033b627f31170166c07ab35fa6be9343 (diff) |
Merge pull request #4635
6c23b08 CCoinsKeyHasher::operator() should return size_t (Wladimir J. van der Laan)
Diffstat (limited to 'src')
-rw-r--r-- | src/coins.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coins.h b/src/coins.h index 9f90fe6bd0..ff60288163 100644 --- a/src/coins.h +++ b/src/coins.h @@ -247,7 +247,10 @@ private: public: 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); } }; |