Ignore cache files on reindex (#2840)

This commit is contained in:
UdjinM6 2019-04-05 15:39:30 +03:00 committed by Alexander Block
parent 565754e019
commit 6982d98548

View File

@ -1981,7 +1981,8 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
// LOAD SERIALIZED DAT FILES INTO DATA CACHES FOR INTERNAL USE
if (!fLiteMode) {
bool fIgnoreCacheFiles = fLiteMode || fReindex || fReindexChainState;
if (!fIgnoreCacheFiles) {
boost::filesystem::path pathDB = GetDataDir();
std::string strDBName;