| 5220 | |
| 5221 | |
| 5222 | void 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 */ |
| 5233 | void PruneBlockFilesManual(int nManualPruneHeight) |
no test coverage detected