also ignore old shares in initial share exchange
authorForrest Voight <forrest@forre.st>
Tue, 27 Nov 2012 02:48:39 +0000 (21:48 -0500)
committerForrest Voight <forrest@forre.st>
Tue, 27 Nov 2012 02:48:39 +0000 (21:48 -0500)
p2pool/node.py

index 8e414c0..6f88a22 100644 (file)
@@ -56,7 +56,7 @@ class P2PNode(p2p.Node):
         except:
             log.err(None, 'in handle_share_hashes:')
         else:
-            self.handle_shares(shares, peer)
+            self.handle_shares([x for x in shares if isinstance(x, p2pool_data.NewNewShare)], peer)
     
     def handle_get_shares(self, hashes, parents, stops, peer):
         parents = min(parents, 1000//len(hashes))