Browse Source

Remove some verboisity.

cl-refactor
Gav Wood 11 years ago
parent
commit
900d7eb0cc
  1. 2
      libp2p/Host.cpp

2
libp2p/Host.cpp

@ -312,7 +312,7 @@ std::map<h512, bi::tcp::endpoint> Host::potentialPeers()
if (auto j = i.second.lock()) if (auto j = i.second.lock())
{ {
auto ep = j->endpoint(); auto ep = j->endpoint();
cnote << "Checking potential peer" << j->m_listenPort << j->endpoint() << isPrivateAddress(ep.address()) << ep.port() << j->m_id.abridged(); // cnote << "Checking potential peer" << j->m_listenPort << j->endpoint() << isPrivateAddress(ep.address()) << ep.port() << j->m_id.abridged();
// Skip peers with a listen port of zero or are on a private network // Skip peers with a listen port of zero or are on a private network
bool peerOnNet = (j->m_listenPort != 0 && (!isPrivateAddress(ep.address()) || m_netPrefs.localNetworking)); bool peerOnNet = (j->m_listenPort != 0 && (!isPrivateAddress(ep.address()) || m_netPrefs.localNetworking));
if (!peerOnNet && m_incomingPeers.count(j->m_id)) if (!peerOnNet && m_incomingPeers.count(j->m_id))

Loading…
Cancel
Save