diff --git a/libwhisper/WhisperDB.cpp b/libwhisper/WhisperDB.cpp index 91c5f74f4..4bfa6caa7 100644 --- a/libwhisper/WhisperDB.cpp +++ b/libwhisper/WhisperDB.cpp @@ -31,11 +31,11 @@ WhisperDB::WhisperDB() { string path = dev::getDataDir(); boost::filesystem::create_directories(path); - ldb::Options op; + leveldb::Options op; op.create_if_missing = true; op.max_open_files = 256; - ldb::DB* p = nullptr; - leveldb::Status status = ldb::DB::Open(op, path + "/whisper", &p); + leveldb::DB* p = nullptr; + leveldb::Status status = leveldb::DB::Open(op, path + "/whisper", &p); m_db.reset(p); if (!status.ok()) BOOST_THROW_EXCEPTION(FailedToOpenLevelDB(status.ToString())); diff --git a/libwhisper/WhisperDB.h b/libwhisper/WhisperDB.h index c20f52a75..efea322a8 100644 --- a/libwhisper/WhisperDB.h +++ b/libwhisper/WhisperDB.h @@ -46,9 +46,9 @@ class WhisperDB void kill(dev::h256 const& _key); private: - ldb::ReadOptions m_readOptions; - ldb::WriteOptions m_writeOptions; - std::unique_ptr m_db; + leveldb::ReadOptions m_readOptions; + leveldb::WriteOptions m_writeOptions; + std::unique_ptr m_db; }; }