Skip to content

Commit 9adea0a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9403de6 commit 9adea0a

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
@@ -5,7 +5,7 @@ def proof_of_work(difficulty: int) -> int:
55
"""
66
Simulates a Proof of Work mining process.
77
8-
The miner must find a nonce such that the hash of the nonce starts
8+
The miner must find a nonce such that the hash of the nonce starts
99
with a specific number of leading zeros (difficulty).
1010
1111
Args:
@@ -19,7 +19,7 @@ def proof_of_work(difficulty: int) -> int:
1919
>>> isinstance(result, int)
2020
True
2121
"""
22-
prefix = '0' * difficulty
22+
prefix = "0" * difficulty
2323
nonce = 0
2424

2525
while True:

0 commit comments

Comments
 (0)