aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2016-02-16 12:10:12 -0500
committerSuhas Daftuar <[email protected]>2016-02-16 12:35:16 -0500
commit086da92ea772b70d460993ada0e068d139beddd6 (patch)
tree0af4c85989c7772978ce4b7a1d4e27865685767d /src/miner.cpp
parentMerge #7526: fix spelling of advertise (shows up in the debug log) (diff)
downloaddiscoin-086da92ea772b70d460993ada0e068d139beddd6.tar.xz
discoin-086da92ea772b70d460993ada0e068d139beddd6.zip
Add tags to mempool's mapTx indices
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