aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/blockchain_converter.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2014-12-06 16:12:25 +0000
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:40 -0800
commit11129b9ee4e1f022ca1ae1c26d8f50e8aa8d3e03 (patch)
tree0a354c5b490b673f213f2caea583696f8a8635e8 /src/blockchain_converter/blockchain_converter.cpp
parentbuild: add liblmdb to the cmake autodetection system (diff)
downloadmonero-11129b9ee4e1f022ca1ae1c26d8f50e8aa8d3e03.tar.xz
blockchain_converter: use the actual blockchain location
Diffstat (limited to '')
-rw-r--r--src/blockchain_converter/blockchain_converter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp
index b18fd3525..a2b3a375f 100644
--- a/src/blockchain_converter/blockchain_converter.cpp
+++ b/src/blockchain_converter/blockchain_converter.cpp
@@ -52,20 +52,22 @@ struct fake_core
fake_core() : m_pool(dummy), dummy(m_pool), m_storage(&m_pool)
{
- m_pool.init("/home/user/.bitmonero");
- m_storage.init("/home/user/.bitmonero", false);
+ boost::filesystem::path default_data_path {tools::get_default_data_dir()};
+ m_pool.init(default_data_path.string());
+ m_storage.init(default_data_path.string(), false);
}
};
int main(int argc, char* argv[])
{
fake_core c;
+ boost::filesystem::path default_data_path {tools::get_default_data_dir()};
BlockchainDB *blockchain;
blockchain = new BlockchainLMDB();
- blockchain->open("/home/user/.bitmonero");
+ blockchain->open(default_data_path.string());
for (uint64_t i = 0; i < c.m_storage.get_current_blockchain_height(); ++i)
{