aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-03-05 06:49:47 +0100
committerPieter Wuille <[email protected]>2016-03-05 06:56:33 +0100
commit9f33dba05c01ecc5c56eb1284ab7d64d42f55171 (patch)
tree031673d6ff0595a9c4478772f3454d59ffa010d5 /src/miner.cpp
parentMerge #7455: [travis] Exit early when check-doc.py fails (diff)
parentAdd tags to mempool's mapTx indices (diff)
downloaddiscoin-9f33dba05c01ecc5c56eb1284ab7d64d42f55171.tar.xz
discoin-9f33dba05c01ecc5c56eb1284ab7d64d42f55171.zip
Merge #7539: Add tags to mempool's mapTx indices
086da92 Add tags to mempool's mapTx indices (Suhas Daftuar)
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index c454c0279..9281f7285 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -155,10 +155,10 @@ CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& s
std::make_heap(vecPriority.begin(), vecPriority.end(), pricomparer);
}
- CTxMemPool::indexed_transaction_set::nth_index<3>::type::iterator mi = mempool.mapTx.get<3>().begin();
+ CTxMemPool::indexed_transaction_set::index<mining_score>::type::iterator mi = mempool.mapTx.get<mining_score>().begin();
CTxMemPool::txiter iter;
- while (mi != mempool.mapTx.get<3>().end() || !clearedTxs.empty())
+ while (mi != mempool.mapTx.get<mining_score>().end() || !clearedTxs.empty())
{
bool priorityTx = false;
if (fPriorityBlock && !vecPriority.empty()) { // add a tx from priority queue to fill the blockprioritysize