| 79 | } |
| 80 | |
| 81 | void CTxMemPool::QueryHash(vector<uint256> &txids) { |
| 82 | LOCK(cs); |
| 83 | |
| 84 | txids.clear(); |
| 85 | txids.reserve(memPoolTxs.size()); |
| 86 | for (typename map<uint256, CTxMemPoolEntry>::iterator mi = memPoolTxs.begin(); mi != memPoolTxs.end(); ++mi) { |
| 87 | txids.push_back((*mi).first); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | bool CTxMemPool::CheckTxInMemPool(const uint256 &txid, const CTxMemPoolEntry &memPoolEntry, CValidationState &state, int32_t index, |
| 92 | bool bRehearsalExecute) { |