mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
Python hashcash minting is slow, so only generate 20 bits for now
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user