forked from I2P_Developers/i2p.i2p
* NetDB (ticket #1076)
- Reduce flood redundancy from 4 to 3 - Reduce min part. tunnels for ff from 100 to 50
This commit is contained in:
@@ -129,7 +129,7 @@ class FloodfillMonitorJob extends JobImpl {
|
||||
// Only if we're pretty well integrated...
|
||||
happy = happy && _facade.getKnownRouters() >= 200;
|
||||
happy = happy && getContext().commSystem().countActivePeers() >= 50;
|
||||
happy = happy && getContext().tunnelManager().getParticipatingCount() >= 100;
|
||||
happy = happy && getContext().tunnelManager().getParticipatingCount() >= 50;
|
||||
happy = happy && Math.abs(getContext().clock().getOffset()) < 10*1000;
|
||||
// We need an address and no introducers
|
||||
if (happy) {
|
||||
|
@@ -38,8 +38,9 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
|
||||
* This is the flood redundancy. Entries are
|
||||
* sent to this many other floodfills.
|
||||
* Was 7 through release 0.9; 5 for 0.9.1.
|
||||
* 4 as of 0.9.2; 3 as of 0.9.9
|
||||
*/
|
||||
private static final int MAX_TO_FLOOD = 4;
|
||||
private static final int MAX_TO_FLOOD = 3;
|
||||
|
||||
private static final int FLOOD_PRIORITY = OutNetMessage.PRIORITY_NETDB_FLOOD;
|
||||
private static final int FLOOD_TIMEOUT = 30*1000;
|
||||
|
Reference in New Issue
Block a user