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.
This commit is contained in:
parent
4b2c2cc3e9
commit
b00a56acfe
|
@ -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_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_dbg_lock_sleep);
|
||||||
command_line::add_arg(visible_options, command_line::arg_test_drop_download_height);
|
command_line::add_arg(visible_options, command_line::arg_test_drop_download_height);
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
bf::path default_log = default_data_dir / std::string(CRYPTONOTE_NAME ".log");
|
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());
|
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
|
// Hidden options
|
||||||
command_line::add_arg(hidden_options, daemon_args::arg_command);
|
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);
|
visible_options.add(core_settings);
|
||||||
all_options.add(visible_options);
|
all_options.add(visible_options);
|
||||||
all_options.add(hidden_options);
|
all_options.add(hidden_options);
|
||||||
|
|
Loading…
Reference in New Issue