* 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:
zzz
2013-10-19 14:45:52 +00:00
parent 5187bf1eae
commit 8e0dbf31ba
2 changed files with 3 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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;