From 47f4690b876d71ffcb052c1e2dffd5a4129a1f47 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Sun, 18 Aug 2013 00:27:20 -0400 Subject: [PATCH] added bits to block-stale punishment message --- p2pool/data.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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' -- 1.7.1