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

Function UnlinkPrunedFiles

src/main.cpp:5222–5230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5220
5221
5222void UnlinkPrunedFiles(std::set<int>& setFilesToPrune)
5223{
5224 for (set<int>::iterator it = setFilesToPrune.begin(); it != setFilesToPrune.end(); ++it) {
5225 CDiskBlockPos pos(*it, 0);
5226 boost::filesystem::remove(GetBlockPosFilename(pos, "blk"));
5227 boost::filesystem::remove(GetBlockPosFilename(pos, "rev"));
5228 LogPrintf("Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
5229 }
5230}
5231
5232/* This function is called from the RPC code for pruneblockchain */
5233void PruneBlockFilesManual(int nManualPruneHeight)

Callers 1

FlushStateToDiskFunction · 0.85

Calls 3

GetBlockPosFilenameFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected