From bf2e010973e94c8ca2800c434cceb8bdb767f71c Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Thu, 17 May 2018 14:50:15 +0900 Subject: uint256: Remove unnecessary crypto/common.h use --- src/validation.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 3df6456eca..7cfbc81473 100644 --- a/src/validation.h +++ b/src/validation.h @@ -12,6 +12,7 @@ #include #include +#include // for ReadLE64 #include #include // For CMessageHeader::MessageStartChars #include @@ -138,7 +139,10 @@ static const int DEFAULT_STOPATHEIGHT = 0; struct BlockHasher { - size_t operator()(const uint256& hash) const { return hash.GetCheapHash(); } + // this used to call `GetCheapHash()` in uint256, which was later moved; the + // cheap hash function simply calls ReadLE64() however, so the end result is + // identical + size_t operator()(const uint256& hash) const { return ReadLE64(hash.begin()); } }; extern CScript COINBASE_FLAGS; -- cgit v1.2.3