| 45 | } |
| 46 | |
| 47 | void CTxMemPool::Remove(CBaseTx *pBaseTx, list<std::shared_ptr<CBaseTx> > &removed, bool fRecursive) { |
| 48 | // Remove transaction from memory pool |
| 49 | LOCK(cs); |
| 50 | uint256 txid = pBaseTx->GetHash(); |
| 51 | if (memPoolTxs.count(txid)) { |
| 52 | removed.push_front(std::shared_ptr<CBaseTx>(memPoolTxs[txid].GetTransaction())); |
| 53 | memPoolTxs.erase(txid); |
| 54 | EraseTransactionFromWallet(txid); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void CTxMemPool::Remove(const uint256 &txid) { |
| 59 | LOCK(cs); |
no test coverage detected