diff options
author | whythat <whythat@protonmail.com> | 2018-01-21 17:29:55 +0200 |
---|---|---|
committer | whythat <whythat@protonmail.com> | 2018-02-16 22:32:01 +0200 |
commit | 05a12ccc2dc920f4a997e66e6965ae60c1a4c65e (patch) | |
tree | a694dfd20154294b7a12b9c0b99863c2049b86b6 /src/daemon/core.h | |
parent | common: implement dependent option descriptor (diff) | |
download | monero-05a12ccc2dc920f4a997e66e6965ae60c1a4c65e.tar.xz |
options: remove testnet-* options
Diffstat (limited to 'src/daemon/core.h')
-rw-r--r-- | src/daemon/core.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon/core.h b/src/daemon/core.h index f00dffccc..1ff696bef 100644 --- a/src/daemon/core.h +++ b/src/daemon/core.h @@ -69,8 +69,7 @@ public: std::string get_config_subdir() const { bool testnet = command_line::get_arg(m_vm_HACK, cryptonote::arg_testnet_on); - auto p2p_bind_arg = testnet ? nodetool::arg_testnet_p2p_bind_port : nodetool::arg_p2p_bind_port; - std::string port = command_line::get_arg(m_vm_HACK, p2p_bind_arg); + std::string port = command_line::get_arg(m_vm_HACK, nodetool::arg_p2p_bind_port); if ((!testnet && port != std::to_string(::config::P2P_DEFAULT_PORT)) || (testnet && port != std::to_string(::config::testnet::P2P_DEFAULT_PORT))) { return port; |