From 6982d98548b8663fc0c423e4c0b20eb84c19f597 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 5 Apr 2019 15:39:30 +0300 Subject: [PATCH] Ignore cache files on reindex (#2840) --- src/init.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 44fc764e1d..a078221391 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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;