[freenet-dev] [freenet-cvs] r16871 - trunk/freenet/src/freenet/node
Matthew Toseland
toad at amphibian.dyndns.org
Fri Jan 4 19:55:09 UTC 2008
On Friday 04 January 2008 16:23, Robert Hailey wrote:
>
> On Jan 4, 2008, at 8:53 AM, Matthew Toseland wrote:
> > location > 1.0 is possible if the node set it too high and told us,
> > no?
>
> No... AFAICS currentLocation is private, the only time it is not set
> to a constant (-1) is from "Location.getLocation(locationString);" or
> "updateLocation(double newLoc);".
>
> updateLocation() has an explicit guard against setting it beyond 0&1,
> and getLocation() will throw a parse exception if it is beyond 0&1.
>
> In fact, rather than setting currentLocation to -1, we could probably
> set isRoutable=false and it would be even simpler.
Good idea - but won't it get reset?
-------------- 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/20080104/5c5bfb97/attachment.pgp
More information about the Devl
mailing list