aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-09-08 13:40:28 -0400
committerRiccardo Spagni <ric@spagni.net>2014-09-15 15:53:50 +0200
commit257077a96bf44dcc2b70f1c4aedf312ae6c826d5 (patch)
tree300622576e32331ae8bc9065b97f67f86725a507 /src/p2p
parentSeparate rpc port for testnet (diff)
downloadmonero-257077a96bf44dcc2b70f1c4aedf312ae6c826d5.tar.xz
Separate network id for testnet
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 7030d93f7..759b21fcf 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -41,6 +41,7 @@
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/serialization/version.hpp>
+#include <boost/uuid/uuid.hpp>
#include "cryptonote_config.h"
#include "warnings.h"
@@ -78,8 +79,15 @@ namespace nodetool
public:
typedef t_payload_net_handler payload_net_handler;
- // Some code
- node_server(t_payload_net_handler& payload_handler):m_payload_handler(payload_handler), m_allow_local_ip(false), m_hide_my_port(false), m_network_id(::config::NETWORK_ID)
+
+ node_server(
+ t_payload_net_handler& payload_handler
+ , boost::uuids::uuid network_id
+ )
+ : m_payload_handler(payload_handler)
+ , m_allow_local_ip(false)
+ , m_hide_my_port(false)
+ , m_network_id(std::move(network_id))
{}
static void init_options(boost::program_options::options_description& desc);