Browse Source

Switch CTxMempool::mapTx to use a hash index for txids

0.13
Pieter Wuille 9 years ago
parent
commit
8cc9cfe160
  1. 3
      src/txmempool.h

3
src/txmempool.h

@ -17,6 +17,7 @@ @@ -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: @@ -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>,

Loading…
Cancel
Save