Skip to content

Commit

Permalink
Use default DB config
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Mar 7, 2021
1 parent b6a636b commit 6b4f3ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/CryptoNoteWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,6 @@ Node* createInprocessNode(const CryptoNote::Currency& currency, Logging::LoggerM
//TODO: move to settings?
dbConfig.setConfigFolderDefaulted(true);
dbConfig.setDataDir(std::string(Settings::instance().getDataDir().absolutePath().toLocal8Bit().data()));
dbConfig.setMaxOpenFiles(100);
dbConfig.setReadCacheSize(128 * 1024 * 1024);
dbConfig.setWriteBufferSize(128 * 1024 * 1024);
dbConfig.setTestnet(false);
dbConfig.setBackgroundThreadsCount(4);

if (dbConfig.isConfigFolderDefaulted()) {
if (!Tools::create_directories_if_necessary(dbConfig.getDataDir())) {
Expand Down

0 comments on commit 6b4f3ea

Please sign in to comment.