From 1d1ea9f0962a331c21a3029a0302e5906a396f56 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Wed, 22 Feb 2017 18:10:00 +0900 Subject: Turn TryCreateDirectory() into TryCreateDirectories() Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would fail if the blocks directory was not explicitly created before. The line that did so was in a weird location and could be removed as a result. --- src/init.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 3bbdb16c3b..4fcdd48d9a 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1410,8 +1410,6 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) fReindex = GetBoolArg("-reindex", false); bool fReindexChainState = GetBoolArg("-reindex-chainstate", false); - fs::create_directories(GetDataDir() / "blocks"); - // cache size calculations int64_t nTotalCache = (GetArg("-dbcache", nDefaultDbCache) << 20); nTotalCache = std::max(nTotalCache, nMinDbCache << 20); // total cache cannot be less than nMinDbCache -- cgit v1.2.3