aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-08 23:06:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-08 23:06:29 +0000
commit336b37580f6b889d57f888acfc883a179d69e35c (patch)
treec1042d93d0b84c2efd2b8331be9eeb03bd5b0699 /src/p2p
parentMerge pull request #518 (diff)
downloadmonero-336b37580f6b889d57f888acfc883a179d69e35c.tar.xz
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.
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.inl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 067f6378d..1244e78f8 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -49,7 +49,6 @@
#include "crypto/crypto.h"
#include "storages/levin_abstract_invoke2.h"
#include "data_logger.hpp"
-#include "daemon/command_line_args.h"
// We have to look for miniupnpc headers in different places, dependent on if its compiled or external
#ifdef UPNP_STATIC
@@ -342,7 +341,7 @@ namespace nodetool
bool node_server<t_payload_net_handler>::init(const boost::program_options::variables_map& vm)
{
std::set<std::string> full_addrs;
- bool testnet = command_line::get_arg(vm, daemon_args::arg_testnet_on);
+ bool testnet = command_line::get_arg(vm, command_line::arg_testnet_on);
if (testnet)
{