ignore old share broadcasts
authorForrest Voight <forrest@forre.st>
Tue, 27 Nov 2012 00:11:17 +0000 (19:11 -0500)
committerForrest Voight <forrest@forre.st>
Tue, 27 Nov 2012 00:23:05 +0000 (19:23 -0500)
p2pool/p2p.py

index b2d6e22..b8a0995 100644 (file)
@@ -257,7 +257,7 @@ class Protocol(p2protocol.Protocol):
         ('shares', pack.ListType(p2pool_data.share_type)),
     ])
     def handle_shares(self, shares):
-        self.node.handle_shares([p2pool_data.load_share(share, self.node.net, self) for share in shares if share['type'] not in [6, 7]], self)
+        self.node.handle_shares([p2pool_data.load_share(share, self.node.net, self) for share in shares if share['type'] == 9], self)
     
     def sendShares(self, shares, tracker, known_txs, include_txs_with=[]):
         if not shares: