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

Function FlushSnapshotToDisk

src/validation.cpp:5290–5299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5288}
5289
5290static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_loaded)
5291{
5292 LOG_TIME_MILLIS_WITH_CATEGORY_MSG_ONCE(
5293 strprintf("%s (%.2f MB)",
5294 snapshot_loaded ? "saving snapshot chainstate" : "flushing coins cache",
5295 coins_cache.DynamicMemoryUsage() / (1000 * 1000)),
5296 BCLog::LogFlags::ALL);
5297
5298 coins_cache.Flush();
5299}
5300
5301bool ChainstateManager::PopulateAndValidateSnapshot(
5302 CChainState& snapshot_chainstate,

Callers 1

Calls 2

DynamicMemoryUsageMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected