MCPcopy Create free account
hub / github.com/ElementsProject/elements / Next

Method Next

src/txdb.cpp:289–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void 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
300bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo) {
301 CDBBatch batch(*this);

Callers 6

rest_headersFunction · 0.45
rest_filter_headerFunction · 0.45
ProcessMessageMethod · 0.45
LoadBlockIndexGutsMethod · 0.45
UpgradeMethod · 0.45
VerifyDBMethod · 0.45

Calls 2

ValidMethod · 0.45
GetKeyMethod · 0.45

Tested by

no test coverage detected