* clients expore dht faster

* use random path when doing dht lookups for .loki
pull/1020/head
Jeff Becker 5 years ago
parent a8e6069a93
commit 79badd6714
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -709,6 +709,10 @@ namespace llarp
_rcLookupHandler.ExploreNetwork();
}
else if(not isSvcNode)
{
_rcLookupHandler.ExploreNetwork();
}
size_t connectToNum = _outboundSessionMaker.minConnectedRouters;
const auto strictConnect = _rcLookupHandler.NumberOfStrictConnectRouters();
if(strictConnect > 0 && connectToNum > strictConnect)

@ -288,7 +288,7 @@ namespace llarp
/// address
bool
EnsurePathToService(const Address remote, PathEnsureHook h,
uint64_t timeoutMS, bool lookupOnRandomPath = false);
uint64_t timeoutMS, bool lookupOnRandomPath = true);
using SNodeEnsureHook =
std::function< void(const RouterID, exit::BaseSession_ptr) >;

Loading…
Cancel
Save