From ee1bacc64f6e9ae05354c2646818737b18a08401 Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Tue, 9 Sep 2014 09:10:30 -0400 Subject: [PATCH] Add testnet seed nodes --- src/p2p/net_node.inl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 753af7321..9655a6176 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -241,7 +241,14 @@ namespace nodetool template bool node_server::init(const boost::program_options::variables_map& vm, bool testnet) { - if (!testnet) { + if (testnet) + { + ADD_HARDCODED_SEED_NODE("107.152.187.202:28080"); + ADD_HARDCODED_SEED_NODE("197.242.158.240:28080"); + ADD_HARDCODED_SEED_NODE("107.152.130.98:28080"); + } + else + { ADD_HARDCODED_SEED_NODE("62.210.78.186:18080"); ADD_HARDCODED_SEED_NODE("195.12.60.154:18080"); ADD_HARDCODED_SEED_NODE("54.241.246.125:18080"); @@ -253,8 +260,6 @@ namespace nodetool ADD_HARDCODED_SEED_NODE("107.178.112.126:18080"); ADD_HARDCODED_SEED_NODE("107.158.233.98:18080"); ADD_HARDCODED_SEED_NODE("64.22.111.2:18080"); - } else { - m_network_id.data[0] += 1; } bool res = handle_command_line(vm, testnet);