Skip to content

Commit

Permalink
Remove directory change on non-standard port (?)
Browse files Browse the repository at this point in the history
- Changed folder name to 'non-standard-port' some time ago, to check when this was happening
- It appears that a different directory was being used for data directory, specifically when comms over a non-default port happened
- Folder name was originally equivalent to the argument given to port
- Not sure why this was here, in first place
  • Loading branch information
who-biz committed Jul 29, 2020
1 parent b60a4f6 commit fe85b45
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/p2p/net_node.inl
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,6 @@ namespace nodetool

m_config_folder = command_line::get_arg(vm, cryptonote::arg_data_dir);

if ((m_nettype == cryptonote::MAINNET && m_port != std::to_string(::config::P2P_DEFAULT_PORT))
|| (m_nettype == cryptonote::TESTNET && m_port != std::to_string(::config::testnet::P2P_DEFAULT_PORT))
|| (m_nettype == cryptonote::STAGENET && m_port != std::to_string(::config::stagenet::P2P_DEFAULT_PORT))) {
m_config_folder = m_config_folder + "/non-standard-port";
}

res = init_config();
CHECK_AND_ASSERT_MES(res, false, "Failed to init config.");

Expand Down

0 comments on commit fe85b45

Please sign in to comment.