MCPcopy Create free account
hub / github.com/LUX-Core/lux / PruneBlockFilesManual

Function PruneBlockFilesManual

src/main.cpp:5233–5239  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

5231
5232/* This function is called from the RPC code for pruneblockchain */
5233void PruneBlockFilesManual(int nManualPruneHeight)
5234{
5235 CValidationState state;
5236 if (!FlushStateToDisk(state, FLUSH_STATE_NONE, nManualPruneHeight)) {
5237 LogPrintf("%s: failed to flush state (%s)\n", __func__, FormatStateMessage(state));
5238 }
5239}
5240
5241
5242/* Calculate the block/rev files to delete based on height specified by user with RPC command pruneblockchain */

Callers 1

pruneblockchainFunction · 0.85

Calls 2

FlushStateToDiskFunction · 0.85
FormatStateMessageFunction · 0.85

Tested by

no test coverage detected