| 370 | } |
| 371 | |
| 372 | void CTxMemPool::pruneSpent(const uint256 &hashTx, CCoins &coins) |
| 373 | { |
| 374 | LOCK(cs); |
| 375 | |
| 376 | std::map<COutPoint, CInPoint>::iterator it = mapNextTx.lower_bound(COutPoint(hashTx, 0)); |
| 377 | |
| 378 | // iterate over all COutPoints in mapNextTx whose hash equals the provided hashTx |
| 379 | while (it != mapNextTx.end() && it->first.hash == hashTx) { |
| 380 | coins.Spend(it->first.n); // and remove those outputs from coins |
| 381 | it++; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | unsigned int CTxMemPool::GetTransactionsUpdated() const |
| 386 | { |
no test coverage detected