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

Method Flush

src/coins.cpp:203–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool CCoinsViewCache::Flush() {
204 bool fOk = base->BatchWrite(cacheCoins, hashBlock);
205 cacheCoins.clear();
206 cachedCoinsUsage = 0;
207 return fOk;
208}
209
210void CCoinsViewCache::Uncache(const COutPoint& hash)
211{

Callers 4

FlushStateToDiskFunction · 0.45
DisconnectTipMethod · 0.45
ConnectTipMethod · 0.45
ReplayBlocksMethod · 0.45

Calls 2

BatchWriteMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected