From 336b37580f6b889d57f888acfc883a179d69e35c Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 8 Dec 2015 23:06:29 +0000 Subject: Register daemon command line arguments to core if they're used in core This fixes coretests, which does not register daemon specific arguments, but uses core, which uses those arguments. Also gets rid of an unwanted dependency on daemon code from core. --- src/rpc/core_rpc_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rpc') diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 4ba3acc37..b566e7318 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -40,7 +40,6 @@ using namespace epee; #include "misc_language.h" #include "crypto/hash.h" #include "core_rpc_server_error_codes.h" -#include "daemon/command_line_args.h" namespace cryptonote { @@ -78,7 +77,7 @@ namespace cryptonote const boost::program_options::variables_map& vm ) { - m_testnet = command_line::get_arg(vm, daemon_args::arg_testnet_on); + m_testnet = command_line::get_arg(vm, command_line::arg_testnet_on); m_net_server.set_threads_prefix("RPC"); bool r = handle_command_line(vm); -- cgit v1.2.3