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

Function PruneAndFlush

src/validation.cpp:2257–2264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2255}
2256
2257void PruneAndFlush() {
2258 CValidationState state;
2259 fCheckForPruning = true;
2260 const CChainParams& chainparams = Params();
2261 if (!FlushStateToDisk(chainparams, state, FlushStateMode::NONE)) {
2262 LogPrintf("%s: failed to flush state (%s)\n", __func__, FormatStateMessage(state));
2263 }
2264}
2265
2266static void DoWarning(const std::string& strWarning)
2267{

Callers 1

AppInitMainFunction · 0.85

Calls 3

FlushStateToDiskFunction · 0.85
FormatStateMessageFunction · 0.85
ParamsClass · 0.70

Tested by

no test coverage detected