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

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

* NetDB: Increase floodfills, decrease flood redundancy

parent 96775acf
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class FloodfillMonitorJob extends JobImpl { ...@@ -25,7 +25,7 @@ class FloodfillMonitorJob extends JobImpl {
private static final int REQUEUE_DELAY = 60*60*1000; private static final int REQUEUE_DELAY = 60*60*1000;
private static final long MIN_UPTIME = 2*60*60*1000; private static final long MIN_UPTIME = 2*60*60*1000;
private static final long MIN_CHANGE_DELAY = 6*60*60*1000; private static final long MIN_CHANGE_DELAY = 6*60*60*1000;
private static final int MIN_FF = 250; private static final int MIN_FF = 300;
private static final int MAX_FF = 999999; private static final int MAX_FF = 999999;
private static final String PROP_FLOODFILL_PARTICIPANT = "router.floodfillParticipant"; private static final String PROP_FLOODFILL_PARTICIPANT = "router.floodfillParticipant";
......
...@@ -33,6 +33,13 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad ...@@ -33,6 +33,13 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
private final Set<Hash> _verifiesInProgress; private final Set<Hash> _verifiesInProgress;
private FloodThrottler _floodThrottler; private FloodThrottler _floodThrottler;
private LookupThrottler _lookupThrottler; private LookupThrottler _lookupThrottler;
/**
* This is the flood redundancy. Entries are
* sent to this many other floodfills.
* Was 7 through release 0.9; 5 for 0.9.1.
*/
private static final int MAX_TO_FLOOD = 4;
public FloodfillNetworkDatabaseFacade(RouterContext context) { public FloodfillNetworkDatabaseFacade(RouterContext context) {
super(context); super(context);
...@@ -156,8 +163,6 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad ...@@ -156,8 +163,6 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
return _lookupThrottler.shouldThrottle(from, id); return _lookupThrottler.shouldThrottle(from, id);
} }
private static final int MAX_TO_FLOOD = 5;
/** /**
* Send to a subset of all floodfill peers. * Send to a subset of all floodfill peers.
* We do this to implement Kademlia within the floodfills, i.e. * We do this to implement Kademlia within the floodfills, i.e.
......
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