increase timeout for dropping heads - was causing problems when starting p2pool
authorForrest Voight <forrest@forre.st>
Tue, 23 Aug 2011 02:01:51 +0000 (22:01 -0400)
committerForrest Voight <forrest@forre.st>
Tue, 23 Aug 2011 02:01:51 +0000 (22:01 -0400)
p2pool/data.py

index c856c36..7eafb01 100644 (file)
@@ -376,7 +376,7 @@ class OkayTracker(bitcoin_data.Tracker):
                     if share_hash in scores[-5:]:
                         #print 1
                         continue
-                    if self.shares[share_hash].time_seen > time.time() - 30:
+                    if self.shares[share_hash].time_seen > time.time() - 300:
                         #print 2
                         continue
                     if share_hash not in self.verified.shares and max(self.shares[after_tail_hash].time_seen for after_tail_hash in self.reverse_shares.get(tail)) > time.time() - 120: # XXX stupid