mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 03:13:28 +01:00
Make P2P use the testnet data dir
This commit is contained in:
parent
23525655fa
commit
120c84d04f
@ -260,7 +260,9 @@ namespace nodetool
|
||||
|
||||
bool res = handle_command_line(vm, testnet);
|
||||
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();
|
||||
CHECK_AND_ASSERT_MES(res, false, "Failed to init config.");
|
||||
|
Loading…
Reference in New Issue
Block a user