Author: toad
Date: 2006-04-11 19:30:58 +0000 (Tue, 11 Apr 2006)
New Revision: 8521
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
trunk/freenet/src/freenet/node/Version.java
Log:
634: Node was not reminding user of a new version being available unless the
user had visited the darknet page or otherwise listed the peers.
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2006-04-11 19:07:06 UTC
(rev 8520)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2006-04-11 19:30:58 UTC
(rev 8521)
@@ -213,6 +213,7 @@
identityHash = md.digest(identity);
hashCode = Fields.hashCode(identityHash);
version = fs.get("version");
+ Version.seenVersion(version);
String locationString = fs.get("location");
if(locationString == null) throw new FSParseException("No location");
currentLocation = new Location(locationString);
@@ -889,6 +890,7 @@
if(!newVersion.equals(version))
changedAnything = true;
version = newVersion;
+ Version.seenVersion(newVersion);
String locationString = fs.get("location");
if(locationString == null) throw new FSParseException("No location");
Location loc = new Location(locationString);
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-04-11 19:07:06 UTC (rev
8520)
+++ trunk/freenet/src/freenet/node/Version.java 2006-04-11 19:30:58 UTC (rev
8521)
@@ -20,7 +20,7 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- private static final int buildNumber = 633;
+ private static final int buildNumber = 634;
/** Oldest build of Fred we will talk to */
private static final int lastGoodBuild = 591;