diff options
| author | Drew Rasmussen <[email protected]> | 2018-03-14 23:10:39 -0700 |
|---|---|---|
| committer | Drew Rasmussen <[email protected]> | 2018-03-14 23:10:39 -0700 |
| commit | bb079a0e2c20beb22456c91ad9e11beeae7cdc34 (patch) | |
| tree | 2a72be44e234f81abb5dc9e6635897a27ef1f8e1 /src/miner.cpp | |
| parent | Merge #10637: Coin Selection with Murch's algorithm (diff) | |
| download | discoin-bb079a0e2c20beb22456c91ad9e11beeae7cdc34.tar.xz discoin-bb079a0e2c20beb22456c91ad9e11beeae7cdc34.zip | |
Remove unused variable in SortForBlock
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 fcb376c6c..4b8644677 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -282,7 +282,7 @@ bool BlockAssembler::SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_tran return mapModifiedTx.count(it) || inBlock.count(it) || failedTx.count(it); } -void BlockAssembler::SortForBlock(const CTxMemPool::setEntries& package, CTxMemPool::txiter entry, std::vector<CTxMemPool::txiter>& sortedEntries) +void BlockAssembler::SortForBlock(const CTxMemPool::setEntries& package, std::vector<CTxMemPool::txiter>& sortedEntries) { // Sort package by ancestor count // If a transaction A depends on transaction B, then A's ancestor count @@ -418,7 +418,7 @@ void BlockAssembler::addPackageTxs(int &nPackagesSelected, int &nDescendantsUpda // Package can be added. Sort the entries in a valid order. std::vector<CTxMemPool::txiter> sortedEntries; - SortForBlock(ancestors, iter, sortedEntries); + SortForBlock(ancestors, sortedEntries); for (size_t i=0; i<sortedEntries.size(); ++i) { AddToBlock(sortedEntries[i]); |