forked from I2P_Developers/i2p.i2p
* NetDB: Increase floodfills, decrease flood redundancy
This commit is contained in:
@@ -25,7 +25,7 @@ class FloodfillMonitorJob extends JobImpl {
|
||||
private static final int REQUEUE_DELAY = 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 int MIN_FF = 250;
|
||||
private static final int MIN_FF = 300;
|
||||
private static final int MAX_FF = 999999;
|
||||
private static final String PROP_FLOODFILL_PARTICIPANT = "router.floodfillParticipant";
|
||||
|
||||
|
||||
@@ -33,6 +33,13 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
|
||||
private final Set<Hash> _verifiesInProgress;
|
||||
private FloodThrottler _floodThrottler;
|
||||
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) {
|
||||
super(context);
|
||||
@@ -156,8 +163,6 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
|
||||
return _lookupThrottler.shouldThrottle(from, id);
|
||||
}
|
||||
|
||||
private static final int MAX_TO_FLOOD = 5;
|
||||
|
||||
/**
|
||||
* Send to a subset of all floodfill peers.
|
||||
* We do this to implement Kademlia within the floodfills, i.e.
|
||||
|
||||
Reference in New Issue
Block a user