mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Python hashcash minting is slow, so only generate 20 bits for now
This commit is contained in:
parent
4b5ba56a2d
commit
df97026c72
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue