added bits to block-stale punishment message
authorForrest Voight <forrest@forre.st>
Sun, 18 Aug 2013 04:27:20 +0000 (00:27 -0400)
committerForrest Voight <forrest@forre.st>
Sun, 18 Aug 2013 06:14:07 +0000 (02:14 -0400)
p2pool/data.py

index 3ef75f4..7c21fd8 100644 (file)
@@ -348,7 +348,7 @@ class NewShare(object):
     
     def should_punish_reason(self, previous_block, bits, tracker, known_txs):
         if (self.header['previous_block'], self.header['bits']) != (previous_block, bits) and self.header_hash != previous_block and self.peer_addr is not None:
-            return True, 'Block-stale detected! %x < %x' % (self.header['previous_block'], previous_block)
+            return True, 'Block-stale detected! height(%x) < height(%x) or %08x != %08x' % (self.header['previous_block'], previous_block, self.header['bits'].bits, bits.bits)
         
         if self.pow_hash <= self.header['bits'].target:
             return -1, 'block solution'