From 21df032a9f35aba988986e99eec45bdcd2e52b63 Mon Sep 17 00:00:00 2001 From: arkpar Date: Wed, 24 Jun 2015 21:54:56 +0200 Subject: [PATCH] set max_open_files for blocks and details db --- libethereum/BlockChain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index 640fd2df4..964afa92e 100644 --- a/libethereum/BlockChain.cpp +++ b/libethereum/BlockChain.cpp @@ -149,6 +149,7 @@ void BlockChain::open(std::string const& _path, WithExisting _we) ldb::Options o; o.create_if_missing = true; + o.max_open_files = 256; ldb::DB::Open(o, path + "/blocks", &m_blocksDB); ldb::DB::Open(o, path + "/details", &m_extrasDB); if (!m_blocksDB || !m_extrasDB)