| 33 | } |
| 34 | |
| 35 | bool CTxMemCache::HasTx(const uint256 &txid) { |
| 36 | auto it = txids.find(txid); |
| 37 | if (it != txids.end()) { |
| 38 | return it->second; |
| 39 | } |
| 40 | |
| 41 | if (pBase != nullptr) { |
| 42 | return pBase->HasTx(txid); |
| 43 | } |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | void CTxMemCache::BatchWrite(const TxIdMap &txidsIn) { |
| 48 | for (const auto &item : txidsIn) { |
no test coverage detected