diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-20 15:46:36 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-20 15:46:36 -0400 |
commit | 1ed8a22d19efbde45907e8e51b9519d80cdf4fe0 (patch) | |
tree | 330ecaee94e794565ad3627c7c62c65a2adf6488 | |
parent | bad043729f44d0c64986657a333da097eba2f9e7 (diff) | |
download | infinitytier-1ed8a22d19efbde45907e8e51b9519d80cdf4fe0.tar.gz infinitytier-1ed8a22d19efbde45907e8e51b9519d80cdf4fe0.zip |
And then it turns out to be too slow on a slower 32-bit machine... we do want to do tablets eventually.
-rw-r--r-- | node/Identity.cpp | 4 | ||||
-rw-r--r-- | selftest.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/node/Identity.cpp b/node/Identity.cpp index a180c2ba..859a129f 100644 --- a/node/Identity.cpp +++ b/node/Identity.cpp @@ -39,8 +39,8 @@ // These can't be changed without a new identity type. They define the // parameters of the hashcash hashing/searching algorithm. -#define ZT_IDENTITY_GEN_HASHCASH_FIRST_BYTE_LESS_THAN 7 -#define ZT_IDENTITY_GEN_MEMORY 4194304 +#define ZT_IDENTITY_GEN_HASHCASH_FIRST_BYTE_LESS_THAN 17 +#define ZT_IDENTITY_GEN_MEMORY 2097152 #define ZT_IDENTITY_GEN_SALSA20_ROUNDS 20 namespace ZeroTier { diff --git a/selftest.cpp b/selftest.cpp index 200dd3a7..76428a1e 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -215,6 +215,7 @@ static int testIdentity() Identity id; Buffer<512> buf; +#if 0 std::cout << "[identity] Validate known-good identity... "; std::cout.flush(); if (!id.fromString(KNOWN_GOOD_IDENTITY)) { std::cout << "FAIL (1)" << std::endl; @@ -236,6 +237,7 @@ static int testIdentity() return -1; } std::cout << "PASS (i.e. it failed)" << std::endl; +#endif for(unsigned int k=0;k<4;++k) { std::cout << "[identity] Generate identity... "; std::cout.flush(); |