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

Method PruneAndFlush

src/validation.cpp:2672–2679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2670}
2671
2672void CChainState::PruneAndFlush()
2673{
2674 BlockValidationState state;
2675 m_blockman.m_check_for_pruning = true;
2676 if (!this->FlushStateToDisk(state, FlushStateMode::NONE)) {
2677 LogPrintf("%s: failed to flush state (%s)\n", __func__, state.ToString());
2678 }
2679}
2680
2681static void DoWarning(const bilingual_str& warning)
2682{

Callers 1

AppInitMainFunction · 0.80

Calls 2

FlushStateToDiskMethod · 0.95
ToStringMethod · 0.45

Tested by

no test coverage detected