From df97026c721fd9c05dd8ba404e6db11df19721ba Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Wed, 18 Jul 2012 15:07:17 -0700 Subject: [PATCH] Python hashcash minting is slow, so only generate 20 bits for now --- client-webserver/client.py | 2 +- server-ca/chocolate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client-webserver/client.py b/client-webserver/client.py index 78dfd817a..39267d4ba 100755 --- a/client-webserver/client.py +++ b/client-webserver/client.py @@ -7,7 +7,7 @@ import hashcash # It is OK to use the upstream M2Crypto here instead of our modified # version. (Same with hashcash) -difficulty = 23 # bits of hashcash to generate +difficulty = 20 # bits of hashcash to generate def sha256(m): return hashlib.sha256(m).hexdigest() diff --git a/server-ca/chocolate.py b/server-ca/chocolate.py index 4a65e99e9..318faa441 100755 --- a/server-ca/chocolate.py +++ b/server-ca/chocolate.py @@ -12,7 +12,7 @@ MaximumSessionAge = 100 # seconds, to demonstrate session timeout MaximumChallengeAge = 600 # to demonstrate challenge timeout HashcashExpiry = 60*60 -difficulty = 23 # bits of hashcash required with new requests +difficulty = 20 # bits of hashcash required with new requests try: chocolate_server_name = open("SERVERNAME").read().rstrip()