1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Merge pull request #1158 from majestrate/prune-routers-2020-03-03

Prune non routers from nodedb
This commit is contained in:
Jason Rhinelander 2020-03-04 11:41:15 -04:00 committed by GitHub
commit a78a7fbb17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -732,6 +732,8 @@ namespace llarp
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(IsBootstrapNode(rc.pubkey))
return false;
if(not rc.IsPublicRouter())
return true;
return !_rcLookupHandler.RemoteIsAllowed(rc.pubkey);
});
}