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