| 1162 | } |
| 1163 | |
| 1164 | bool CTxMemPool::getSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value) |
| 1165 | { |
| 1166 | LOCK(cs); |
| 1167 | mapSpentIndex::iterator it; |
| 1168 | |
| 1169 | it = mapSpent.find(key); |
| 1170 | if (it != mapSpent.end()) { |
| 1171 | value = it->second; |
| 1172 | return true; |
| 1173 | } |
| 1174 | return false; |
| 1175 | } |
| 1176 | |
| 1177 | bool CTxMemPool::removeSpentIndex(const uint256 txhash) |
| 1178 | { |
no test coverage detected