diff --git a/src/claimtrie/blob.cpp b/src/claimtrie/blob.cpp index 6f30f440b..11fb23513 100644 --- a/src/claimtrie/blob.cpp +++ b/src/claimtrie/blob.cpp @@ -42,19 +42,19 @@ int CBaseBlob::Compare(const CBaseBlob& b) const template bool CBaseBlob::operator<(const CBaseBlob& b) const { - return data < b.data; + return Compare(b) < 0; } template bool CBaseBlob::operator==(const CBaseBlob& b) const { - return data == b.data; + return Compare(b) == 0; } template bool CBaseBlob::operator!=(const CBaseBlob& b) const { - return data != b.data; + return Compare(b) != 0; } template diff --git a/src/validation.h b/src/validation.h index df116139c..b19ee751b 100644 --- a/src/validation.h +++ b/src/validation.h @@ -158,15 +158,15 @@ struct BlockMapComparer { } }; -struct BlockMap : public robin_hood::unordered_flat_set { +struct BlockMap : public robin_hood::unordered_set { inline iterator find(const uint256& blockHash) { CBlockIndex temp(blockHash); - return robin_hood::unordered_flat_set::find(&temp); + return robin_hood::unordered_set::find(&temp); } inline const_iterator find(const uint256& blockHash) const { CBlockIndex temp(blockHash); - return robin_hood::unordered_flat_set::find(&temp); + return robin_hood::unordered_set::find(&temp); } }; diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 8d444c2c1..48addbc3b 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -699,7 +699,7 @@ private: * detect and report conflicts (double-spends or * mutated transactions where the mutant gets mined). */ - typedef robin_hood::unordered_flat_map>> TxSpends; + typedef robin_hood::unordered_map>> TxSpends; TxSpends mapTxSpends; void AddToSpends(const COutPoint& outpoint, const uint256& wtxid); void AddToSpends(const uint256& wtxid); @@ -808,10 +808,10 @@ public: void MarkPreSplitKeys(); // Map from Key ID to key metadata. - robin_hood::unordered_flat_map mapKeyMetadata; + robin_hood::unordered_map mapKeyMetadata; // Map from Script ID to key metadata (for watch-only keys). - robin_hood::unordered_flat_map m_script_metadata; + robin_hood::unordered_map m_script_metadata; typedef std::map MasterKeyMap; MasterKeyMap mapMasterKeys;