Skip to content

Commit 1e3b382

Browse files
authored
Update proof_of_work.py
1 parent 6ee3d9e commit 1e3b382

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

blockchain/proof_of_work.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ def proof_of_work(difficulty: int) -> int:
2828
hash_result = hashlib.sha256(f"{nonce}".encode()).hexdigest()
2929
if hash_result.startswith(prefix):
3030
end = time.time() # Timing ends
31-
print(f"Time taken: {end - start:.2f}s") # Print time taken
3231
return nonce
3332
nonce += 1

0 commit comments

Comments
 (0)