Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 802 Lines • ▼ Show 20 Lines | for (indexed_transaction_set::const_iterator it = mapTx.begin(); | ||||
CheckInputsAndUpdateCoins(tx, mempoolDuplicate, spendheight); | CheckInputsAndUpdateCoins(tx, mempoolDuplicate, spendheight); | ||||
} | } | ||||
} | } | ||||
unsigned int stepsSinceLastRemove = 0; | unsigned int stepsSinceLastRemove = 0; | ||||
while (!waitingOnDependants.empty()) { | while (!waitingOnDependants.empty()) { | ||||
const CTxMemPoolEntry *entry = waitingOnDependants.front(); | const CTxMemPoolEntry *entry = waitingOnDependants.front(); | ||||
waitingOnDependants.pop_front(); | waitingOnDependants.pop_front(); | ||||
CValidationState state; | |||||
if (!mempoolDuplicate.HaveInputs(entry->GetTx())) { | if (!mempoolDuplicate.HaveInputs(entry->GetTx())) { | ||||
waitingOnDependants.push_back(entry); | waitingOnDependants.push_back(entry); | ||||
stepsSinceLastRemove++; | stepsSinceLastRemove++; | ||||
assert(stepsSinceLastRemove < waitingOnDependants.size()); | assert(stepsSinceLastRemove < waitingOnDependants.size()); | ||||
} else { | } else { | ||||
CheckInputsAndUpdateCoins(entry->GetTx(), mempoolDuplicate, | CheckInputsAndUpdateCoins(entry->GetTx(), mempoolDuplicate, | ||||
spendheight); | spendheight); | ||||
stepsSinceLastRemove = 0; | stepsSinceLastRemove = 0; | ||||
▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines |