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:
commit
a78a7fbb17
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue