From 4a8e4a810e0e1d547dc03555f58e1f65da9263ff Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 9 Oct 2023 19:53:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PoW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PoW.py b/PoW.py index 1b29ed7..a376337 100644 --- a/PoW.py +++ b/PoW.py @@ -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: