|
@ -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; |
|
|