diff --git a/src/miner.h b/src/miner.h --- a/src/miner.h +++ b/src/miner.h @@ -228,7 +228,6 @@ EXCLUSIVE_LOCKS_REQUIRED(mempool->cs); /** Sort the package in an order that is valid to appear in a block */ void SortForBlock(const CTxMemPool::setEntries &package, - CTxMemPool::txiter entry, std::vector &sortedEntries); /** * Add descendants of given transactions to mapModifiedTx with ancestor diff --git a/src/miner.cpp b/src/miner.cpp --- a/src/miner.cpp +++ b/src/miner.cpp @@ -420,7 +420,7 @@ } void BlockAssembler::SortForBlock( - const CTxMemPool::setEntries &package, CTxMemPool::txiter entry, + const CTxMemPool::setEntries &package, std::vector &sortedEntries) { // Sort package by ancestor count. If a transaction A depends on transaction // B, then A's ancestor count must be greater than B's. So this is @@ -569,7 +569,7 @@ // Package can be added. Sort the entries in a valid order. std::vector sortedEntries; - SortForBlock(ancestors, iter, sortedEntries); + SortForBlock(ancestors, sortedEntries); for (auto &entry : sortedEntries) { AddToBlock(entry);