Browse Source

Merge pull request #2281 from arkpar/ldb_limit

Max_open_files for blocks and details db
cl-refactor
Gav Wood 10 years ago
parent
commit
e8057e2725
  1. 1
      libethereum/BlockChain.cpp

1
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)

Loading…
Cancel
Save