diff options
| author | Suhas Daftuar <[email protected]> | 2016-02-16 12:10:12 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2016-02-16 12:35:16 -0500 |
| commit | 086da92ea772b70d460993ada0e068d139beddd6 (patch) | |
| tree | 0af4c85989c7772978ce4b7a1d4e27865685767d /src/miner.cpp | |
| parent | Merge #7526: fix spelling of advertise (shows up in the debug log) (diff) | |
| download | discoin-086da92ea772b70d460993ada0e068d139beddd6.tar.xz discoin-086da92ea772b70d460993ada0e068d139beddd6.zip | |
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 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 |