blockchain_converter: add --testnet for converting testnet blockchain

This commit is contained in:
moneromooo-monero 2014-12-19 18:18:21 +00:00 committed by warptangent
parent c50cd95674
commit 1362846dd7

View File

@ -59,7 +59,12 @@ struct fake_core
int main(int argc, char* argv[]) 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); fake_core c(default_data_path);
BlockchainDB *blockchain; BlockchainDB *blockchain;