don't stop looking at shares when a dup is hit
authorForrest Voight <forrest@forre.st>
Tue, 19 Jul 2011 20:36:30 +0000 (16:36 -0400)
committerForrest Voight <forrest@forre.st>
Tue, 19 Jul 2011 20:36:30 +0000 (16:36 -0400)
p2pool/main.py

index 357bb05..81864b2 100644 (file)
@@ -166,9 +166,9 @@ def main(args):
             for share in shares:
                 if share.hash in tracker.shares:
                     print 'Got duplicate share, ignoring. Hash: %x' % (share.hash,)
-                    return
+                    continue
                 
-                #print 'Received share %x' % (share.hash,)
+                #print 'Received share %x from %r' % (share.hash, share.peer.transport.getPeer() if share.peer is not None else None)
                 
                 tracker.add(share)
                 #for peer2, share_hash in desired: