explore faster via all peers

pull/665/head
Jeff Becker 5 years ago
parent 6c1a04e804
commit 3038a13373
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1363,6 +1363,14 @@ namespace llarp
{
dht()->impl->ExploreNetworkVia(dht::Key_t{rc.pubkey});
}
// explore via every conected peer
ForEachPeer([&](ILinkSession *s) {
if(!s->IsEstablished())
return;
const RouterContact rc = s->GetRemoteRC();
if(rc.IsPublicRouter())
dht()->impl->ExploreNetworkVia(dht::Key_t{rc.pubkey});
});
}
else
LogError("we have no bootstrap nodes specified");

Loading…
Cancel
Save