Python hashcash minting is slow, so only generate 20 bits for now

This commit is contained in:
Seth Schoen 2012-07-18 15:07:17 -07:00
parent 4b5ba56a2d
commit df97026c72
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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()