From b00a56acfe50ab8723ef1e0845c614c2d462a0a9 Mon Sep 17 00:00:00 2001 From: Thomas Winget Date: Sun, 5 Jul 2015 08:32:55 -0400 Subject: [PATCH] Fixed issue with issuing legacy RPC daemon commands As the core RPC server is being redone to use ZeroMQ and the legacy RPC is being wrapped around that, RPC IP and Port args still need to stick around for the daemon's remote invocation. This will likely change in the near future. --- src/daemon/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index d1e0cf671..406f7bb10 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -77,7 +77,7 @@ int main(int argc, char const * argv[]) command_line::add_arg(visible_options, command_line::arg_test_drop_download); command_line::add_arg(visible_options, command_line::arg_test_dbg_lock_sleep); command_line::add_arg(visible_options, command_line::arg_test_drop_download_height); - + // Settings bf::path default_log = default_data_dir / std::string(CRYPTONOTE_NAME ".log"); command_line::add_arg(core_settings, daemon_args::arg_log_file, default_log.string()); @@ -90,6 +90,11 @@ int main(int argc, char const * argv[]) // Hidden options command_line::add_arg(hidden_options, daemon_args::arg_command); + // Legacy RPC options (in hidden section, not sure if best place) + command_line::add_arg(hidden_options, cryptonote::core_rpc_server::arg_rpc_bind_ip); + command_line::add_arg(hidden_options, cryptonote::core_rpc_server::arg_rpc_bind_port); + command_line::add_arg(hidden_options, cryptonote::core_rpc_server::arg_testnet_rpc_bind_port); + visible_options.add(core_settings); all_options.add(visible_options); all_options.add(hidden_options);