aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authorrfree2monero <rfreemonero@op.pl>2015-04-01 18:24:45 +0200
committerrfree2monero <rfreemonero@op.pl>2015-04-01 18:24:45 +0200
commit3cbdf198f168e113f12fa49d016133c434964ed7 (patch)
tree050c74077de8e1b6e431f7d0671b57b5afcb01ab /src/p2p/net_node.h
parentfix locking in count-peers thread (2) (diff)
parentMerge pull request #248 (diff)
downloadmonero-3cbdf198f168e113f12fa49d016133c434964ed7.tar.xz
Merge remote-tracking branch 'monero-official/master' into network-1.6-work1
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r--src/p2p/net_node.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 5b034ce25..f94fedae0 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -80,22 +80,18 @@ namespace nodetool
public:
typedef t_payload_net_handler payload_net_handler;
- node_server(t_payload_net_handler& payload_handler, boost::uuids::uuid network_id)
- :m_payload_handler(payload_handler),
- m_allow_local_ip(false),
- m_no_igd(false),
- m_hide_my_port(false),
- m_network_id(std::move(network_id))
- {
- m_current_number_of_out_peers = 0;
- m_save_graph = false;
- is_closing = false;
- }
+ node_server(
+ t_payload_net_handler& payload_handler
+ )
+ : m_payload_handler(payload_handler)
+ , m_allow_local_ip(false)
+ , m_hide_my_port(false)
+ {}
static void init_options(boost::program_options::options_description& desc);
bool run();
- bool init(const boost::program_options::variables_map& vm, bool testnet);
+ bool init(const boost::program_options::variables_map& vm);
bool deinit();
bool send_stop_signal();
uint32_t get_this_peer_port(){return m_listenning_port;}