only have clients kill router contacts in nodedb

pull/499/head
Jeff Becker 5 years ago
parent 7f25b62ef5
commit 5c1ec93375
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1081,14 +1081,16 @@ namespace llarp
return true;
});
}
// kill dead nodes
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(!routerProfiling().IsBad(rc.pubkey))
return false;
routerProfiling().ClearProfile(rc.pubkey);
return true;
});
else
{
// kill dead nodes if client
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(!routerProfiling().IsBad(rc.pubkey))
return false;
routerProfiling().ClearProfile(rc.pubkey);
return true;
});
}
paths.TickPaths(now);
paths.ExpirePaths(now);

Loading…
Cancel
Save