From c6d52bfca35a60481253266682459650c5c75163 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Tue, 30 Oct 2012 23:58:30 -0400 Subject: [PATCH] made share punishing message not go to stderr and show not only in debug mode --- p2pool/data.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/p2pool/data.py b/p2pool/data.py index f770ad1..ef77a18 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -714,8 +714,7 @@ class OkayTracker(forest.Tracker): best_share = self.items[best] punish, punish_reason = best_share.should_punish_reason(previous_block, bits, self, known_txs) if punish > 0: - if p2pool.DEBUG: - print >>sys.stderr, 'Punishing share for %r! Jumping from %s to %s!' % (punish_reason, format_hash(best), format_hash(best_share.previous_hash)) + print 'Punishing share for %r! Jumping from %s to %s!' % (punish_reason, format_hash(best), format_hash(best_share.previous_hash)) best = best_share.previous_hash timestamp_cutoff = min(int(time.time()), best_share.timestamp) - 3600 -- 1.7.1