fix "zero hop" bug

This commit is contained in:
Jeff Becker 2019-11-25 11:53:03 -05:00
parent ee40389f05
commit cbb7196b30
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 0 additions and 5 deletions

View File

@ -123,11 +123,6 @@ namespace llarp
int remainingDesired = numDesired;
_nodedb->visit([&](const RouterContact &other) -> bool {
// check if we really remainingDesired to
if(other.ExpiresSoon(now, 30000)) // TODO: make delta configurable
{
return remainingDesired > 0;
}
if(!_rcLookup->RemoteIsAllowed(other.pubkey))
{
return remainingDesired > 0;