Permalink
Browse files

consume invalid results preventing re-send

  • Loading branch information...
1 parent bb543e0 commit 27fc69bc6d96ca7bc6eb830c24ae74feeafa48e7 @m0mchil committed Sep 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 Servers.py
View
@@ -178,6 +178,7 @@ def send(self, result, send_callback):
h = hash(result.state, result.merkle_end, result.time, result.difficulty, result.nonce[i])
if h[7] != 0:
say_line('Verification failed, check hardware! (%s)', (result.miner.id()))
+ return True # consume this particular result
else:
self.diff1_found(bytereverse(h[6]), result.target[6])
if belowOrEquals(h[:7], result.target[:7]):

0 comments on commit 27fc69b

Please sign in to comment.