[freenet-dev] [freenet-cvs] r15932 - trunk/freenet/src/freenet/node

Matthew Toseland toad at amphibian.dyndns.org
Wed Nov 28 14:19:57 UTC 2007


If you're going to do that then pull minVersion too! I introduced the below 
check originally so we could only send probe requests to nodes that support 
them. It might be useful in future.

On Thursday 22 November 2007 22:26, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2007-11-22 22:26:38 +0000 (Thu, 22 Nov 2007)
> New Revision: 15932
> 
> Modified:
>    trunk/freenet/src/freenet/node/PeerManager.java
> Log:
> PeerManager: spare some cpu-cycles; we have checked isRoutable: if it was 
incompatible it wouldn't be
> 
> Modified: trunk/freenet/src/freenet/node/PeerManager.java
> ===================================================================
> --- trunk/freenet/src/freenet/node/PeerManager.java	2007-11-22 22:09:36 UTC 
(rev 15931)
> +++ trunk/freenet/src/freenet/node/PeerManager.java	2007-11-22 22:26:38 UTC 
(rev 15932)
> @@ -734,10 +734,6 @@
>              	if(logMINOR) Logger.minor(this, "Skipping (routing backed 
off): "+p.getPeer());
>              	continue;
>              }
> -            if(minVersion > 0 && 
Version.getArbitraryBuildNumber(p.getVersion()) < minVersion) {
> -            	if(logMINOR) Logger.minor(this, "Skipping old 
version: "+p.getPeer());
> -            	continue;
> -            }
>              count++;
>              double diff = Location.distance(p, target);
>              if(diff > maxDistance) continue;
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20071128/9cb9ec33/attachment.pgp 


More information about the Devl mailing list