diff options
author | Suhas Daftuar <sdaftuar@chaincode.com> | 2016-02-16 12:10:12 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@chaincode.com> | 2016-02-16 12:35:16 -0500 |
commit | 086da92ea772b70d460993ada0e068d139beddd6 (patch) | |
tree | 0af4c85989c7772978ce4b7a1d4e27865685767d /src/miner.cpp | |
parent | 8b70a64d62c6e64288762d062414cc979f880c54 (diff) |
Add tags to mempool's mapTx indices
Diffstat (limited to 'src/miner.cpp')
-rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index c454c0279c..9281f7285c 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 |