mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Switch CTxMempool::mapTx to use a hash index for txids
This commit is contained in:
parent
382c871d28
commit
8cc9cfe160
@ -17,6 +17,7 @@
|
|||||||
#undef foreach
|
#undef foreach
|
||||||
#include "boost/multi_index_container.hpp"
|
#include "boost/multi_index_container.hpp"
|
||||||
#include "boost/multi_index/ordered_index.hpp"
|
#include "boost/multi_index/ordered_index.hpp"
|
||||||
|
#include "boost/multi_index/hashed_index.hpp"
|
||||||
|
|
||||||
class CAutoFile;
|
class CAutoFile;
|
||||||
class CBlockIndex;
|
class CBlockIndex;
|
||||||
@ -422,7 +423,7 @@ public:
|
|||||||
CTxMemPoolEntry,
|
CTxMemPoolEntry,
|
||||||
boost::multi_index::indexed_by<
|
boost::multi_index::indexed_by<
|
||||||
// sorted by txid
|
// sorted by txid
|
||||||
boost::multi_index::ordered_unique<mempoolentry_txid>,
|
boost::multi_index::hashed_unique<mempoolentry_txid, SaltedTxidHasher>,
|
||||||
// sorted by fee rate
|
// sorted by fee rate
|
||||||
boost::multi_index::ordered_non_unique<
|
boost::multi_index::ordered_non_unique<
|
||||||
boost::multi_index::tag<descendant_score>,
|
boost::multi_index::tag<descendant_score>,
|
||||||
|
Loading…
Reference in New Issue
Block a user