Clean up some expensive logging.

This commit is contained in:
JoelKatz
2012-10-04 12:54:20 -07:00
parent 015ba9f24d
commit 9c637aedb9
2 changed files with 20 additions and 5 deletions

View File

@@ -5,6 +5,8 @@
#include <openssl/pem.h>
#include <openssl/err.h>
// #define EC_DEBUG
// Functions to add CKey support for deterministic EC keys
#include "Serializer.h"
@@ -107,7 +109,9 @@ EC_KEY* CKey::GenerateRootDeterministicKey(const uint128& seed)
BN_CTX_free(ctx);
assert(EC_KEY_check_key(pkey)==1);
#ifdef EC_DEBUG
assert(EC_KEY_check_key(pkey)==1); // CAUTION: This check is *very* expensive
#endif
return pkey;
}