Author: toad
Date: 2008-08-06 19:18:41 +0000 (Wed, 06 Aug 2008)
New Revision: 21647
Modified:
trunk/freenet/src/freenet/node/NodeCrypto.java
Log:
Option to disable stripping the group
Modified: trunk/freenet/src/freenet/node/NodeCrypto.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeCrypto.java 2008-08-06 18:46:59 UTC
(rev 21646)
+++ trunk/freenet/src/freenet/node/NodeCrypto.java 2008-08-06 19:18:41 UTC
(rev 21647)
@@ -366,10 +366,13 @@
}
}
+ public static boolean DISABLE_GROUP_STRIP = false;
+
private byte[] myCompressedRef(boolean setup, boolean heavySetup,
boolean forARK) {
SimpleFieldSet fs = exportPublicFieldSet(setup, heavySetup,
forARK);
// TODO: we should change that to ((setup || heavySetup) &&
!forARK) when all the nodes have the new code
boolean shouldStripGroup = heavySetup &&
Global.DSAgroupBigA.equals(cryptoGroup);
+ if(DISABLE_GROUP_STRIP) shouldStripGroup = false;
if(shouldStripGroup)
fs.removeSubset("dsaGroup");