I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ccb4210f authored by zzz's avatar zzz
Browse files

NetDB: Limit max explore at startup when hidden

parent 7e5dc6ad
No related branches found
No related tags found
No related merge requests found
...@@ -74,9 +74,8 @@ class StartExplorersJob extends JobImpl { ...@@ -74,9 +74,8 @@ class StartExplorersJob extends JobImpl {
num *= 15; // at less than 3x MIN_RESEED, explore extremely aggressively num *= 15; // at less than 3x MIN_RESEED, explore extremely aggressively
else if (count < LOW_ROUTERS) else if (count < LOW_ROUTERS)
num *= 10; // 3x was not sufficient to keep hidden routers from losing peers num *= 10; // 3x was not sufficient to keep hidden routers from losing peers
if (getContext().router().getUptime() < STARTUP_TIME) if (getContext().router().getUptime() < STARTUP_TIME ||
num *= 2; getContext().router().isHidden())
if (getContext().router().isHidden())
num *= 2; num *= 2;
Set<Hash> toExplore = selectKeysToExplore(num); Set<Hash> toExplore = selectKeysToExplore(num);
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment