connect to closest for RC lookups too

pull/1069/head
Jeff Becker 4 years ago
parent 49f696de9c
commit ae8bb3751b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -435,9 +435,8 @@ namespace llarp
new GotRouterMessage(requester, txid, {router->rc()}, false));
return;
}
Key_t next;
std::set< Key_t > excluding = {requester, ourKey};
if(_nodes->FindCloseExcluding(target, next, excluding))
const auto rc = GetRouter()->nodedb()->FindClosestTo(target);
Key_t next(rc.pubkey);
{
if(next == target)
{
@ -467,11 +466,6 @@ namespace llarp
new GotRouterMessage(requester, next, txid, false));
}
}
else
{
// we don't know it and have no closer peers to ask
replies.emplace_back(new GotRouterMessage(requester, txid, {}, false));
}
}
const llarp::service::IntroSet*

Loading…
Cancel
Save