|
|
@ -585,9 +585,9 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const |
|
|
|
if (fDependsWait) |
|
|
|
if (fDependsWait) |
|
|
|
waitingOnDependants.push_back(&it->second); |
|
|
|
waitingOnDependants.push_back(&it->second); |
|
|
|
else { |
|
|
|
else { |
|
|
|
CValidationState state; CTxUndo undo; |
|
|
|
CValidationState state; |
|
|
|
assert(CheckInputs(tx, state, mempoolDuplicate, false, 0, false, NULL)); |
|
|
|
assert(CheckInputs(tx, state, mempoolDuplicate, false, 0, false, NULL)); |
|
|
|
UpdateCoins(tx, state, mempoolDuplicate, undo, 1000000); |
|
|
|
UpdateCoins(tx, state, mempoolDuplicate, 1000000); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
unsigned int stepsSinceLastRemove = 0; |
|
|
|
unsigned int stepsSinceLastRemove = 0; |
|
|
@ -601,8 +601,7 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const |
|
|
|
assert(stepsSinceLastRemove < waitingOnDependants.size()); |
|
|
|
assert(stepsSinceLastRemove < waitingOnDependants.size()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
assert(CheckInputs(entry->GetTx(), state, mempoolDuplicate, false, 0, false, NULL)); |
|
|
|
assert(CheckInputs(entry->GetTx(), state, mempoolDuplicate, false, 0, false, NULL)); |
|
|
|
CTxUndo undo; |
|
|
|
UpdateCoins(entry->GetTx(), state, mempoolDuplicate, 1000000); |
|
|
|
UpdateCoins(entry->GetTx(), state, mempoolDuplicate, undo, 1000000); |
|
|
|
|
|
|
|
stepsSinceLastRemove = 0; |
|
|
|
stepsSinceLastRemove = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|