Remove unused variable in SortForBlock
This commit is contained in:
parent
e057589dc6
commit
bb079a0e2c
2 changed files with 3 additions and 3 deletions
|
@ -282,7 +282,7 @@ bool BlockAssembler::SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_tran
|
||||||
return mapModifiedTx.count(it) || inBlock.count(it) || failedTx.count(it);
|
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
|
// Sort package by ancestor count
|
||||||
// If a transaction A depends on transaction B, then A's 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.
|
// Package can be added. Sort the entries in a valid order.
|
||||||
std::vector<CTxMemPool::txiter> sortedEntries;
|
std::vector<CTxMemPool::txiter> sortedEntries;
|
||||||
SortForBlock(ancestors, iter, sortedEntries);
|
SortForBlock(ancestors, sortedEntries);
|
||||||
|
|
||||||
for (size_t i=0; i<sortedEntries.size(); ++i) {
|
for (size_t i=0; i<sortedEntries.size(); ++i) {
|
||||||
AddToBlock(sortedEntries[i]);
|
AddToBlock(sortedEntries[i]);
|
||||||
|
|
|
@ -185,7 +185,7 @@ private:
|
||||||
* or if the transaction's cached data in mapTx is incorrect. */
|
* or if the transaction's cached data in mapTx is incorrect. */
|
||||||
bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx);
|
bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx);
|
||||||
/** Sort the package in an order that is valid to appear in a block */
|
/** 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<CTxMemPool::txiter>& sortedEntries);
|
void SortForBlock(const CTxMemPool::setEntries& package, std::vector<CTxMemPool::txiter>& sortedEntries);
|
||||||
/** Add descendants of given transactions to mapModifiedTx with ancestor
|
/** Add descendants of given transactions to mapModifiedTx with ancestor
|
||||||
* state updated assuming given transactions are inBlock. Returns number
|
* state updated assuming given transactions are inBlock. Returns number
|
||||||
* of updated descendants. */
|
* of updated descendants. */
|
||||||
|
|
Loading…
Reference in a new issue