This commit is contained in:
jl777
2016-11-13 16:21:48 -03:00
parent ed652d8b89
commit 888cf827c9
3 changed files with 48 additions and 11 deletions

View File

@@ -516,6 +516,8 @@ void CleanupBlockRevFiles()
}
path komodostate = GetDataDir() / "komodostate";
remove(komodostate);
path minerids = GetDataDir() / "minerids";
remove(minerids);
// 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)