aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-05-17 14:50:15 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-09-18 14:27:05 +0900
commitbf2e010973e94c8ca2800c434cceb8bdb767f71c (patch)
treeec3824a1def9d498e7226a7ed393ba240ccabaf0 /src/uint256.h
parentcb25cd6aa18c69918176d68e36e26f7e373aa48c (diff)
downloadbitcoin-bf2e010973e94c8ca2800c434cceb8bdb767f71c.tar.xz
uint256: Remove unnecessary crypto/common.h use
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/uint256.h b/src/uint256.h
index 26a3331d92..97e0cfa015 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -12,7 +12,6 @@
#include <stdint.h>
#include <string>
#include <vector>
-#include <crypto/common.h>
/** Template base class for fixed-sized opaque blobs. */
template<unsigned int BITS>
@@ -123,16 +122,6 @@ class uint256 : public base_blob<256> {
public:
uint256() {}
explicit uint256(const std::vector<unsigned char>& vch) : base_blob<256>(vch) {}
-
- /** A cheap hash function that just returns 64 bits from the result, it can be
- * used when the contents are considered uniformly random. It is not appropriate
- * when the value can easily be influenced from outside as e.g. a network adversary could
- * provide values to trigger worst-case behavior.
- */
- uint64_t GetCheapHash() const
- {
- return ReadLE64(data);
- }
};
/* uint256 from const char *.