diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2014-12-19 18:18:21 +0000 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:39:43 -0800 |
commit | 1362846dd7c7e50b8804e24ece1a750472cc4485 (patch) | |
tree | 2f998bb7c8bdd75b36a4d0937347d1abcbd91921 | |
parent | Fixes a bug with getting output metadata from BlockchainDB (diff) | |
download | monero-1362846dd7c7e50b8804e24ece1a750472cc4485.tar.xz |
blockchain_converter: add --testnet for converting testnet blockchain
-rw-r--r-- | src/blockchain_converter/blockchain_converter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp index f2dd10b18..57822700f 100644 --- a/src/blockchain_converter/blockchain_converter.cpp +++ b/src/blockchain_converter/blockchain_converter.cpp @@ -59,7 +59,12 @@ struct fake_core int main(int argc, char* argv[]) { - boost::filesystem::path default_data_path {tools::get_default_data_dir()}; + std::string dir = tools::get_default_data_dir(); + boost::filesystem::path default_data_path {dir}; + if (argc >= 2 && !strcmp(argv[1], "--testnet")) { + default_data_path /= "testnet"; + } + fake_core c(default_data_path); BlockchainDB *blockchain; |