fix "zero hop" bug

pull/926/head
Jeff Becker 5 years ago
parent ee40389f05
commit cbb7196b30
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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;

Loading…
Cancel
Save