mirror of https://github.com/oxen-io/lokinet
fix "zero hop" bug
This commit is contained in:
parent
ee40389f05
commit
cbb7196b30
|
@ -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…
Reference in New Issue