diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-09-17 17:04:43 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-08-03 15:33:15 -0400 |
commit | bc886fcb31e1afa7bbf7b86bfd93e51da7076ccf (patch) | |
tree | cd5b73288d3a8b8ba5d2bfb7cb437edea87bcce9 /src/wallet/wallet.h | |
parent | 272356024db978c92112167f8d8e4cc62adad63d (diff) | |
download | bitcoin-bc886fcb31e1afa7bbf7b86bfd93e51da7076ccf.tar.xz |
Change mapWallet to be a std::unordered_map
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 5780749283..bf9a12c01b 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -14,6 +14,7 @@ #include <policy/feerate.h> #include <psbt.h> #include <tinyformat.h> +#include <util/hasher.h> #include <util/message.h> #include <util/result.h> #include <util/strencodings.h> @@ -37,6 +38,7 @@ #include <stdint.h> #include <string> #include <utility> +#include <unordered_map> #include <vector> #include <boost/signals2/signal.hpp> @@ -390,7 +392,7 @@ public: /** Map from txid to CWalletTx for all transactions this wallet is * interested in, including received and sent transactions. */ - std::map<uint256, CWalletTx> mapWallet GUARDED_BY(cs_wallet); + std::unordered_map<uint256, CWalletTx, SaltedTxidHasher> mapWallet GUARDED_BY(cs_wallet); typedef std::multimap<int64_t, CWalletTx*> TxItems; TxItems wtxOrdered; |