From 02f37cd3299ac778286a5e035a21a3776125ce0e Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Wed, 15 Feb 2012 21:59:49 -0500 Subject: [PATCH] discourage shares with incorrect bits in header --- p2pool/data.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/p2pool/data.py b/p2pool/data.py index cb7eecf..e51463e 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -396,7 +396,7 @@ class OkayTracker(forest.Tracker): if best is not None: best_share = self.verified.shares[best] - if best_share.header['previous_block'] != previous_block and best_share.header_hash != previous_block and best_share.peer is not None: + if (best_share.header['previous_block'], best_share.header['bits']) != (previous_block, bits) and best_share.header_hash != previous_block and best_share.peer is not None: if p2pool.DEBUG: print 'Stale detected! %x < %x' % (best_share.header['previous_block'], previous_block) best = best_share.previous_hash -- 1.7.1