Author: toad
Date: 2007-04-18 18:59:09 +0000 (Wed, 18 Apr 2007)
New Revision: 12787
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
Add swapIdentifier to PeerNode also
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2007-04-18 18:55:52 UTC
(rev 12786)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2007-04-18 18:59:09 UTC
(rev 12787)
@@ -174,6 +174,10 @@
/** Hash of hash of node identity. Used in setup key. */
final byte[] identityHashHash;
+ /** Semi-unique ID used to help in mapping the network (see the code that
uses it). Note this is for diagnostic
+ * purposes only and should be removed along with the code that uses it
eventually - FIXME */
+ final long swapIdentifier;
+
/** Negotiation types supported */
int[] negTypes;
@@ -361,6 +365,7 @@
if(identity == null) throw new FSParseException("No identity");
identityHash = SHA256.digest(identity);
identityHashHash = SHA256.digest(identityHash);
+ swapIdentifier = Fields.bytesToLong(identityHashHash);
hashCode = Fields.hashCode(identityHash);
version = fs.get("version");
Version.seenVersion(version);