Skip to content

Commit 3791a1b

Browse files
authored
Update SoloMiner.py
1 parent 41f2750 commit 3791a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoloMiner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def mine_worker(job, target, extranonce1, extranonce2_size, nonce_start, nonce_e
130130
return
131131

132132
nonce_bin = struct.pack('<I', nonce)
133-
hash_result = hashlib.sha256(hashlib.sha256(hashlib.sha256(hashlib.sha256(block_header + nonce_bin).digest()).digest()).digest()).digest()
133+
hash_result = hashlib.sha256(hashlib.sha256(block_header + nonce_bin).digest()).digest()
134134

135135
if hash_result[::-1] < target_bin:
136136
difficulty = calculate_difficulty(hash_result)

0 commit comments

Comments
 (0)