handle forgotten tails
authorForrest Voight <forrest@forre.st>
Wed, 3 Aug 2011 17:49:05 +0000 (13:49 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 3 Aug 2011 17:49:05 +0000 (13:49 -0400)
p2pool/main.py

index 75d6b9b..fd0e45f 100644 (file)
@@ -130,8 +130,8 @@ def main(args):
             
             t = time.time()
             for peer2, share_hash in desired:
-                #if share_hash not in tracker.tails: # was received in the time tracker.think was running
-                #    continue
+                if share_hash not in tracker.tails: # was received in the time tracker.think was running
+                    continue
                 last_request_time, count = requested.get(share_hash, (None, 0))
                 if last_request_time is not None and last_request_time - 5 < t < last_request_time + 10 * 1.5**count:
                     continue