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
1 changed files with 6 additions and 1 deletions

View File

@ -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;