We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee3d9e commit 1e3b382Copy full SHA for 1e3b382
blockchain/proof_of_work.py
@@ -28,6 +28,5 @@ def proof_of_work(difficulty: int) -> int:
28
hash_result = hashlib.sha256(f"{nonce}".encode()).hexdigest()
29
if hash_result.startswith(prefix):
30
end = time.time() # Timing ends
31
- print(f"Time taken: {end - start:.2f}s") # Print time taken
32
return nonce
33
nonce += 1
0 commit comments