This commit is contained in:
jl777
2016-11-13 09:47:14 -03:00
parent 6687cc6efb
commit e4a1e28c14

View File

@@ -514,7 +514,8 @@ void CleanupBlockRevFiles()
remove(it->path());
}
}
path komodostate = GetDataDir() / "komodostate";
remove(komodostate);
// Remove all block files that aren't part of a contiguous set starting at
// zero by walking the ordered map (keys are block file indices) by
// keeping a separate counter. Once we hit a gap (or if 0 doesn't exist)