Author: toad
Date: 2007-04-18 18:28:10 +0000 (Wed, 18 Apr 2007)
New Revision: 12779
Modified:
trunk/freenet/src/freenet/node/Node.java
Log:
Add swapIdentifier. Will use later.
Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java 2007-04-18 16:44:30 UTC (rev
12778)
+++ trunk/freenet/src/freenet/node/Node.java 2007-04-18 18:28:10 UTC (rev
12779)
@@ -345,7 +345,10 @@
/** Hash of identity. Used as setup key. */
byte[] identityHash;
/** Hash of hash of identity i.e. hash of setup key. */
- byte[] identityHashHash;
+ byte[] identityHashHash;
+ /** Semi-unique ID for swap requests. Used to identify us so that the
+ * topology can be reconstructed. */
+ public long swapIdentifier;
/** The signature of the above fieldset */
private DSASignature myReferenceSignature = null;
/** A synchronization object used while signing the reference fiedlset
*/
@@ -487,6 +490,7 @@
}
identityHash = SHA256.digest(myIdentity);
identityHashHash = SHA256.digest(identityHash);
+ swapIdentifier = Fields.bytesToLong(identityHashHash);
String loc = fs.get("location");
Location l;
try {