| 287 | } |
| 288 | |
| 289 | void CCoinsViewDBCursor::Next() |
| 290 | { |
| 291 | pcursor->Next(); |
| 292 | CoinEntry entry(&keyTmp.second); |
| 293 | if (!pcursor->Valid() || !pcursor->GetKey(entry)) { |
| 294 | keyTmp.first = 0; // Invalidate cached key after last record so that Valid() and GetKey() return false |
| 295 | } else { |
| 296 | keyTmp.first = entry.key; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo) { |
| 301 | CDBBatch batch(*this); |
no test coverage detected