diff options
| author | Pieter Wuille <[email protected]> | 2014-07-09 17:25:09 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-07-14 16:13:08 +0200 |
| commit | bc42503f6ab304608c321986a870795e45f5a016 (patch) | |
| tree | cbb104bd5010fd817a460c89b10470e8b60f9ea7 /src/uint256.h | |
| parent | Add option to disable 077 umask (create new files with system default umask) (diff) | |
| download | discoin-bc42503f6ab304608c321986a870795e45f5a016.tar.xz discoin-bc42503f6ab304608c321986a870795e45f5a016.zip | |
Use unordered_map for CCoinsViewCache with salted hash
Diffstat (limited to 'src/uint256.h')
| -rw-r--r-- | src/uint256.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h index 82db7758c..ad0a56f44 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -21,7 +21,7 @@ public: template<unsigned int BITS> class base_uint { -private: +protected: enum { WIDTH=BITS/32 }; uint32_t pn[WIDTH]; public: @@ -322,6 +322,8 @@ public: // implementation accident. uint256& SetCompact(uint32_t nCompact, bool *pfNegative = NULL, bool *pfOverflow = NULL); uint32_t GetCompact(bool fNegative = false) const; + + uint64_t GetHash(const uint256& salt) const; }; #endif |