Browse Source

removed excessive dependency

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
bd525e0408
  1. 1
      libwhisper/CMakeLists.txt
  2. 5
      libwhisper/WhisperDB.cpp

1
libwhisper/CMakeLists.txt

@ -21,7 +21,6 @@ file(GLOB HEADERS "*.h")
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
target_link_libraries(${EXECUTABLE} ethereum)
target_link_libraries(${EXECUTABLE} ethcore) target_link_libraries(${EXECUTABLE} ethcore)
target_link_libraries(${EXECUTABLE} devcrypto) target_link_libraries(${EXECUTABLE} devcrypto)
target_link_libraries(${EXECUTABLE} devcore) target_link_libraries(${EXECUTABLE} devcore)

5
libwhisper/WhisperDB.cpp

@ -27,17 +27,16 @@
#include <libdevcore/Exceptions.h> #include <libdevcore/Exceptions.h>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>
#include <libdevcore/SHA3.h> #include <libdevcore/SHA3.h>
#include <libethereum/Defaults.h> #include <libdevcore/FileSystem.h>
#include "WhisperDB.h" #include "WhisperDB.h"
using namespace std; using namespace std;
using namespace dev; using namespace dev;
using namespace dev::shh; using namespace dev::shh;
using namespace dev::eth;
WhisperDB::WhisperDB() WhisperDB::WhisperDB()
{ {
string path = Defaults::dbPath(); string path = dev::getDataDir();
boost::filesystem::create_directories(path); boost::filesystem::create_directories(path);
ldb::Options op; ldb::Options op;
op.create_if_missing = true; op.create_if_missing = true;

Loading…
Cancel
Save