Use unordered_map for CCoinsViewCache with salted hash

This commit is contained in:
Pieter Wuille
2014-07-09 17:25:09 +02:00
parent bdd5b587fc
commit bc42503f6a
4 changed files with 66 additions and 4 deletions

View File

@@ -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