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

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

slow down the ff volunteers

parent a8a0e2a9
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,12 @@ class FloodfillMonitorJob extends JobImpl { ...@@ -46,7 +46,12 @@ class FloodfillMonitorJob extends JobImpl {
getContext().router().rebuildRouterInfo(); getContext().router().rebuildRouterInfo();
if (_log.shouldLog(Log.INFO)) if (_log.shouldLog(Log.INFO))
_log.info("Should we be floodfill? " + ff); _log.info("Should we be floodfill? " + ff);
requeue((REQUEUE_DELAY / 2) + getContext().random().nextInt(REQUEUE_DELAY)); int delay = (REQUEUE_DELAY / 2) + getContext().random().nextInt(REQUEUE_DELAY);
// there's a lot of eligible non-floodfills, keep them from all jumping in at once
// To do: somehow assess the size of the network to make this adaptive?
if (!ff)
delay *= 3;
requeue(delay);
} }
private boolean shouldBeFloodfill() { private boolean shouldBeFloodfill() {
......
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