diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2014-12-12 10:28:46 +0000 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:39:42 -0800 |
commit | 2b9f73787259dfbf164516925beb5befd8f1df6b (patch) | |
tree | fb3c9063b5f88c46f06f6601f45d230688d255a2 /src | |
parent | blockchain: do not append "testnet" to the data directory (diff) | |
download | monero-2b9f73787259dfbf164516925beb5befd8f1df6b.tar.xz |
blockchain_converter: only call data path function once
Diffstat (limited to 'src')
-rw-r--r-- | src/blockchain_converter/blockchain_converter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp index 4653cf66c..1ae1efc72 100644 --- a/src/blockchain_converter/blockchain_converter.cpp +++ b/src/blockchain_converter/blockchain_converter.cpp @@ -50,18 +50,17 @@ struct fake_core blockchain_storage m_storage; - fake_core() : m_pool(dummy), dummy(m_pool), m_storage(&m_pool) + fake_core(const boost::filesystem::path &path) : m_pool(dummy), dummy(m_pool), m_storage(&m_pool) { - 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); + m_pool.init(path.string()); + m_storage.init(path.string(), false); } }; int main(int argc, char* argv[]) { - fake_core c; boost::filesystem::path default_data_path {tools::get_default_data_dir()}; + fake_core c(default_data_path); BlockchainDB *blockchain; |