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/command_line_args.h | |
parent | common: implement dependent option descriptor (diff) | |
download | monero-05a12ccc2dc920f4a997e66e6965ae60c1a4c65e.tar.xz |
options: remove testnet-* options
Diffstat (limited to 'src/daemon/command_line_args.h')
-rw-r--r-- | src/daemon/command_line_args.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/daemon/command_line_args.h b/src/daemon/command_line_args.h index ee6167b6a..90093b65e 100644 --- a/src/daemon/command_line_args.h +++ b/src/daemon/command_line_args.h @@ -76,16 +76,12 @@ namespace daemon_args , "127.0.0.1" }; - const command_line::arg_descriptor<std::string> arg_zmq_rpc_bind_port = { + const command_line::arg_descriptor<std::string, false, true> arg_zmq_rpc_bind_port = { "zmq-rpc-bind-port" - , "Port for ZMQ RPC server to listen on" - , std::to_string(config::ZMQ_RPC_DEFAULT_PORT) - }; - - const command_line::arg_descriptor<std::string> arg_zmq_testnet_rpc_bind_port = { - "zmq-testnet-rpc-bind-port" - , "Port for testnet ZMQ RPC server to listen on" - , std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT) + , "Port for ZMQ RPC server to listen on" + , cryptonote::arg_testnet_on + , std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT) + , std::to_string(config::ZMQ_RPC_DEFAULT_PORT) }; } // namespace daemon_args |