diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-09-09 14:50:21 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 15:55:07 +0200 |
commit | 120c84d04f8a6f3b25898e930c701067ae10f6b1 (patch) | |
tree | 03bae457ff947b838598173133799be83826556f | |
parent | Replace macro with equivalent function call (diff) | |
download | monero-120c84d04f8a6f3b25898e930c701067ae10f6b1.tar.xz |
Make P2P use the testnet data dir
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index d0a150422..870e7572e 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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."); |