Browse Source

Fix lack of block dir bug

pull/51/head
Jonathan "Duke" Leto 5 years ago
committed by Duke Leto
parent
commit
595ca09081
  1. 6
      src/init.cpp

6
src/init.cpp

@ -1670,6 +1670,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
fReindex = GetBoolArg("-reindex", false);
boost::filesystem::path blocksDir = GetDataDir() / "blocks";
if (!boost::filesystem::exists(blocksDir))
{
boost::filesystem::create_directories(blocksDir);
}
// block tree db settings
int dbMaxOpenFiles = GetArg("-dbmaxopenfiles", DEFAULT_DB_MAX_OPEN_FILES);
bool dbCompression = GetBoolArg("-dbcompression", DEFAULT_DB_COMPRESSION);

Loading…
Cancel
Save