| 277 | } |
| 278 | |
| 279 | void CCoinsViewDBCursor::Next() |
| 280 | { |
| 281 | pcursor->Next(); |
| 282 | CoinEntry entry(&keyTmp.second); |
| 283 | if (!pcursor->Valid() || !pcursor->GetKey(entry)) { |
| 284 | keyTmp.first = 0; // Invalidate cached key after last record so that Valid() and GetKey() return false |
| 285 | } else { |
| 286 | keyTmp.first = entry.key; |
| 287 | } |
| 288 | } |
no test coverage detected