diff options
| author | Pieter Wuille <[email protected]> | 2016-05-06 21:36:36 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-05-17 20:04:46 +0200 |
| commit | 8cc9cfe1605432be43d49e09094121bdb93caac8 (patch) | |
| tree | d4c27a8763402da2435492c97c697feed2516181 /src | |
| parent | Use SipHash-2-4 for CCoinsCache index (diff) | |
| download | discoin-8cc9cfe1605432be43d49e09094121bdb93caac8.tar.xz discoin-8cc9cfe1605432be43d49e09094121bdb93caac8.zip | |
Switch CTxMempool::mapTx to use a hash index for txids
Diffstat (limited to 'src')
| -rw-r--r-- | src/txmempool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index bca8dd979..3e1d38797 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -17,6 +17,7 @@ #undef foreach #include "boost/multi_index_container.hpp" #include "boost/multi_index/ordered_index.hpp" +#include "boost/multi_index/hashed_index.hpp" class CAutoFile; class CBlockIndex; @@ -422,7 +423,7 @@ public: CTxMemPoolEntry, boost::multi_index::indexed_by< // sorted by txid - boost::multi_index::ordered_unique<mempoolentry_txid>, + boost::multi_index::hashed_unique<mempoolentry_txid, SaltedTxidHasher>, // sorted by fee rate boost::multi_index::ordered_non_unique< boost::multi_index::tag<descendant_score>, |