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

Function PruneBlockFilesManual

src/validation.cpp:4246–4253  ·  view source on GitHub ↗

This function is called from the RPC code for pruneblockchain */

Source from the content-addressed store, hash-verified

4244
4245/* This function is called from the RPC code for pruneblockchain */
4246void PruneBlockFilesManual(CChainState& active_chainstate, int nManualPruneHeight)
4247{
4248 BlockValidationState state;
4249 if (!active_chainstate.FlushStateToDisk(
4250 state, FlushStateMode::NONE, nManualPruneHeight)) {
4251 LogPrintf("%s: failed to flush state (%s)\n", __func__, state.ToString());
4252 }
4253}
4254
4255void CChainState::LoadMempool(const ArgsManager& args)
4256{

Callers 1

pruneblockchainFunction · 0.85

Calls 2

FlushStateToDiskMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected