We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9403de6 commit 9adea0aCopy full SHA for 9adea0a
blockchain/proof_of_work.py
@@ -5,7 +5,7 @@ def proof_of_work(difficulty: int) -> int:
5
"""
6
Simulates a Proof of Work mining process.
7
8
- 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
9
with a specific number of leading zeros (difficulty).
10
11
Args:
@@ -19,7 +19,7 @@ def proof_of_work(difficulty: int) -> int:
19
>>> isinstance(result, int)
20
True
21
22
- prefix = '0' * difficulty
+ prefix = "0" * difficulty
23
nonce = 0
24
25
while True:
0 commit comments