|
|
@ -178,7 +178,7 @@ void NodeTable::discover(NodeId _node, unsigned _round, shared_ptr<set<shared_pt |
|
|
|
tried.push_back(r); |
|
|
|
FindNode p(r->endpoint.udp, _node); |
|
|
|
p.sign(m_secret); |
|
|
|
m_findNodeTimout.push_back(make_pair(_node, chrono::steady_clock::now())); |
|
|
|
m_findNodeTimeout.push_back(make_pair(_node, chrono::steady_clock::now())); |
|
|
|
m_socketPointer->send(p); |
|
|
|
} |
|
|
|
|
|
|
@ -459,7 +459,7 @@ void NodeTable::onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytes |
|
|
|
case Neighbours::type: |
|
|
|
{ |
|
|
|
bool expected = false; |
|
|
|
m_findNodeTimout.remove_if([&](NodeIdTimePoint const& t) |
|
|
|
m_findNodeTimeout.remove_if([&](NodeIdTimePoint const& t) |
|
|
|
{ |
|
|
|
if (t.first == nodeid && chrono::steady_clock::now() - t.second < c_reqTimeout) |
|
|
|
expected = true; |
|
|
|