Browse Source

fix public-key discovery ping

cl-refactor
subtly 10 years ago
parent
commit
5c5c01a6e9
  1. 3
      libp2p/NodeTable.cpp

3
libp2p/NodeTable.cpp

@ -443,7 +443,10 @@ void NodeTable::onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytes
n->pending = false;
}
else if (m_pubkDiscoverPings.count(_from.address()))
{
m_pubkDiscoverPings.erase(_from.address());
addNode(nodeid, _from, bi::tcp::endpoint(_from.address(), _from.port()));
}
else
return; // unsolicited pong; don't note node as active

Loading…
Cancel
Save