aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/core.h')
-rw-r--r--src/daemon/core.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/daemon/core.h b/src/daemon/core.h
index 1ff696bef..475f418d6 100644
--- a/src/daemon/core.h
+++ b/src/daemon/core.h
@@ -69,9 +69,12 @@ public:
std::string get_config_subdir() const
{
bool testnet = command_line::get_arg(m_vm_HACK, cryptonote::arg_testnet_on);
+ bool stagenet = command_line::get_arg(m_vm_HACK, cryptonote::arg_stagenet_on);
+ bool mainnet = !testnet && !stagenet;
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))) {
+ if ((mainnet && port != std::to_string(::config::P2P_DEFAULT_PORT))
+ || (testnet && port != std::to_string(::config::testnet::P2P_DEFAULT_PORT))
+ || (stagenet && port != std::to_string(::config::stagenet::P2P_DEFAULT_PORT))) {
return port;
}
return std::string();