Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 10, 2024
1 parent 38904a3 commit 5d87a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockchain/proof_of_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def proof_of_work(difficulty: int) -> int:
"""
Simulates a Proof of Work mining process.
The miner must find a nonce such that the hash of the nonce starts
The miner must find a nonce such that the hash of the nonce starts
with a specific number of leading zeros (difficulty).
Args:
Expand All @@ -20,7 +20,7 @@ def proof_of_work(difficulty: int) -> int:
>>> isinstance(result, int)
True
"""
prefix = '0' * difficulty
prefix = "0" * difficulty
nonce = 0
start = time.time() # Timing starts

Check failure on line 25 in blockchain/proof_of_work.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F841)

blockchain/proof_of_work.py:25:5: F841 Local variable `start` is assigned to but never used

Expand Down

0 comments on commit 5d87a84

Please sign in to comment.