Author: toad
Date: 2007-08-22 19:35:22 +0000 (Wed, 22 Aug 2007)
New Revision: 14837

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
Factor out swap max HTL to a static variable

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2007-08-22 19:34:37 UTC 
(rev 14836)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2007-08-22 19:35:22 UTC 
(rev 14837)
@@ -49,6 +49,7 @@
     }

     static final int TIMEOUT = 60*1000;
+    static final int SWAP_MAX_HTL = 6;
     private static boolean logMINOR;
     final RandomSource r;
     final SwapRequestSender sender;
@@ -388,7 +389,7 @@

                 byte[] myHash = SHA256.digest(myValue);

-                Message m = DMT.createFNPSwapRequest(uid, myHash, 6);
+                Message m = DMT.createFNPSwapRequest(uid, myHash, 
SWAP_MAX_HTL);

                 PeerNode pn = node.peers.getRandomPeer();
                 if(pn == null) {


Reply via email to