aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter
diff options
context:
space:
mode:
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;