From: Forrest Voight Date: Sun, 18 Aug 2013 04:27:20 +0000 (-0400) Subject: added bits to block-stale punishment message X-Git-Tag: 13.3~1 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=47f4690b876d71ffcb052c1e2dffd5a4129a1f47 added bits to block-stale punishment message --- diff --git a/p2pool/data.py b/p2pool/data.py index 3ef75f4..7c21fd8 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -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'