aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/core.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-02-17 11:51:57 +0100
committerRiccardo Spagni <ric@spagni.net>2018-02-17 11:51:57 +0100
commit6198c816b1749dbe55a74084ea65694d8a391046 (patch)
tree2fb5dc0857792bea59242950c70f76a006fefee5 /src/daemon/core.h
parentMerge pull request #3191 (diff)
parentoptions: add testnet option dependencies (diff)
downloadmonero-6198c816b1749dbe55a74084ea65694d8a391046.tar.xz
Merge pull request #3170
b3b2d4d2 options: add testnet option dependencies (whythat) c5f55bb4 common: implement dynamic option dependencies mechanism (whythat) 05a12ccc options: remove testnet-* options (whythat) c33cb60e common: implement dependent option descriptor (whythat)
Diffstat (limited to 'src/daemon/core.h')
-rw-r--r--src/daemon/core.h3
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;