From 77316d19dc35a88b4b7390ed5ef418fb51640745 Mon Sep 17 00:00:00 2001 From: subtly Date: Sat, 10 Jan 2015 20:12:47 +0100 Subject: [PATCH] Don't setup nodetable until network is started. --- libp2p/Host.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/Host.cpp b/libp2p/Host.cpp index 243738918..dd38ff5bd 100644 --- a/libp2p/Host.cpp +++ b/libp2p/Host.cpp @@ -52,8 +52,8 @@ Host::Host(std::string const& _clientVersion, NetworkPreferences const& _n, bool m_ifAddresses(Network::getInterfaceAddresses()), m_ioService(2), m_tcp4Acceptor(m_ioService), - m_key(move(getHostIdentifier())), - m_nodeTable(new NodeTable(m_ioService, m_key)) + m_key(move(getHostIdentifier())) +// m_nodeTable(new NodeTable(m_ioService, m_key)) { for (auto address: m_ifAddresses) if (address.is_v4()) @@ -443,7 +443,7 @@ unsigned PeerInfo::fallbackSeconds() const } } -// TODO: P2P rebuild noetable when localNetworking is enabled/disabled +// TODO: P2P rebuild nodetable when localNetworking is enabled/disabled // TODO: P2P migrate grow/prunePeers into 'maintainPeers' & evaluate reputation instead of availability. schedule via deadline timer. //void Host::growPeers() //{