From 5c5c01a6e916683b2470055d0492db93ebf9ccdc Mon Sep 17 00:00:00 2001 From: subtly Date: Mon, 23 Mar 2015 00:24:36 +0100 Subject: [PATCH] fix public-key discovery ping --- libp2p/NodeTable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libp2p/NodeTable.cpp b/libp2p/NodeTable.cpp index ae9e2cdef..912754c39 100644 --- a/libp2p/NodeTable.cpp +++ b/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