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

Method PruneAndFlush

src/validation.cpp:2863–2870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2861}
2862
2863void Chainstate::PruneAndFlush()
2864{
2865 BlockValidationState state;
2866 m_blockman.m_check_for_pruning = true;
2867 if (!this->FlushStateToDisk(state, FlushStateMode::NONE)) {
2868 LogWarning("Failed to flush state (%s)", state.ToString());
2869 }
2870}
2871
2872static void UpdateTipLog(
2873 const ChainstateManager& chainman,

Callers 1

AppInitMainFunction · 0.80

Calls 2

FlushStateToDiskMethod · 0.95
ToStringMethod · 0.45

Tested by

no test coverage detected