| 213 | } |
| 214 | |
| 215 | void CCoinsViewDBCursor::Next() |
| 216 | { |
| 217 | pcursor->Next(); |
| 218 | CoinEntry entry(&keyTmp.second); |
| 219 | if (!pcursor->Valid() || !pcursor->GetKey(entry)) { |
| 220 | keyTmp.first = 0; // Invalidate cached key after last record so that Valid() and GetKey() return false |
| 221 | } else { |
| 222 | keyTmp.first = entry.key; |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo) { |
| 227 | CDBBatch batch(*this); |
no test coverage detected