mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
blockchain_converter: add --testnet for converting testnet blockchain
This commit is contained in:
parent
c50cd95674
commit
1362846dd7
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue