MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Next

Method Next

src/txdb.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void 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
226bool CBlockTreeDB::WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo) {
227 CDBBatch batch(*this);

Callers 6

rest_headersFunction · 0.45
ProcessMessageFunction · 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