summaryrefslogtreecommitdiff
path: root/node/Identity.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-07 14:31:13 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-07 14:31:13 -0400
commit2fa2796f2abbf48e1f8c6b10a7a0fd99e6985862 (patch)
treeb54105e958472973023258bec9776542673df1e0 /node/Identity.cpp
parent343b7f44fc52e6f467b75100cb670b1a4ae48d75 (diff)
downloadinfinitytier-2fa2796f2abbf48e1f8c6b10a7a0fd99e6985862.tar.gz
infinitytier-2fa2796f2abbf48e1f8c6b10a7a0fd99e6985862.zip
Another tweak, hopefully final, to reduce variance on identity generation times.
Diffstat (limited to 'node/Identity.cpp')
-rw-r--r--node/Identity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Identity.cpp b/node/Identity.cpp
index c46321e0..e0d5afd7 100644
--- a/node/Identity.cpp
+++ b/node/Identity.cpp
@@ -40,13 +40,13 @@
// parameters of the hashcash hashing/searching algorithm.
// Hashcash halting criteria
-#define ZT_IDENTITY_GEN_HASHCASH_FIRST_BYTE_LESS_THAN 5
+#define ZT_IDENTITY_GEN_HASHCASH_FIRST_BYTE_LESS_THAN 7
// Amount of memory for memory-hardness
#define ZT_IDENTITY_GEN_MEMORY 8388608
// Step distance for mixing genmem[]
-#define ZT_IDENTITY_GEN_MEMORY_MIX_STEP 128
+#define ZT_IDENTITY_GEN_MEMORY_MIX_STEP 1024
namespace ZeroTier {