aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/main.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-02-16 20:04:04 +0900
committerstoffu <stoffu@protonmail.ch>2018-03-05 11:55:05 +0900
commitaf773211cbc620a1be54f517bd60e587d58a7e93 (patch)
tree40e747cbfc21c7182db27291fb29f9b033de2379 /src/daemon/main.cpp
parentcommand_line: allow args to depend on more than one args (diff)
downloadmonero-af773211cbc620a1be54f517bd60e587d58a7e93.tar.xz
Stagenet
Diffstat (limited to 'src/daemon/main.cpp')
-rw-r--r--src/daemon/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 752a92ba4..50384b2a6 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -138,6 +138,14 @@ int main(int argc, char const * argv[])
return 0;
}
+ const bool testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on);
+ const bool stagenet = command_line::get_arg(vm, cryptonote::arg_stagenet_on);
+ if (testnet && stagenet)
+ {
+ std::cerr << "Can't specify more than one of --tesnet and --stagenet" << ENDL;
+ return 1;
+ }
+
std::string db_type = command_line::get_arg(vm, cryptonote::arg_db_type);
// verify that blockchaindb type is valid