aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2014-12-19 18:18:21 +0000
committerwarptangent <warptangent@inbox.com>2015-01-04 19:39:43 -0800
commit1362846dd7c7e50b8804e24ece1a750472cc4485 (patch)
tree2f998bb7c8bdd75b36a4d0937347d1abcbd91921 /src/blockchain_converter
parentFixes a bug with getting output metadata from BlockchainDB (diff)
downloadmonero-1362846dd7c7e50b8804e24ece1a750472cc4485.tar.xz
blockchain_converter: add --testnet for converting testnet blockchain
Diffstat (limited to 'src/blockchain_converter')
-rw-r--r--src/blockchain_converter/blockchain_converter.cpp7
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;