Баг фикс

This commit is contained in:
Artem 2023-10-09 19:53:35 +03:00
parent 6a4c6d3b7e
commit 4a8e4a810e

2
PoW.py
View File

@ -2,7 +2,7 @@ import hashlib
def check(data, proof, complexity=1, f=hashlib.sha256):
zeros="0"*complexity
hash=f(proof+data)
hash=f((proof+data).encode())
hashdata=hash.hexdigest()
b=0
for a in hashdata: