Skip to content

Commit bbe09d7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5a7b2ff commit bbe09d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blockchain/proof_of_work.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def proof_of_work(difficulty: int) -> int:
66
"""
77
Simulates a Proof of Work mining process.
88
9-
The miner must find a nonce such that the hash of the nonce starts
9+
The miner must find a nonce such that the hash of the nonce starts
1010
with a specific number of leading zeros (difficulty).
1111
1212
Args:
@@ -20,7 +20,7 @@ def proof_of_work(difficulty: int) -> int:
2020
>>> isinstance(result, int)
2121
True
2222
"""
23-
prefix = '0' * difficulty
23+
prefix = "0" * difficulty
2424
nonce = 0
2525
start = time.time()
2626

0 commit comments

Comments
 (0)