mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Make P2P use the testnet data dir
This commit is contained in:
parent
23525655fa
commit
120c84d04f
1 changed files with 3 additions and 1 deletions
|
@ -260,7 +260,9 @@ namespace nodetool
|
||||||
|
|
||||||
bool res = handle_command_line(vm, testnet);
|
bool res = handle_command_line(vm, testnet);
|
||||||
CHECK_AND_ASSERT_MES(res, false, "Failed to handle command line");
|
CHECK_AND_ASSERT_MES(res, false, "Failed to handle command line");
|
||||||
m_config_folder = command_line::get_arg(vm, command_line::arg_data_dir);
|
|
||||||
|
auto config_arg = testnet ? command_line::arg_testnet_data_dir : command_line::arg_data_dir;
|
||||||
|
m_config_folder = command_line::get_arg(vm, config_arg);
|
||||||
|
|
||||||
res = init_config();
|
res = init_config();
|
||||||
CHECK_AND_ASSERT_MES(res, false, "Failed to init config.");
|
CHECK_AND_ASSERT_MES(res, false, "Failed to init config.");
|
||||||
|
|
Loading…
Reference in a new issue