From: Forrest Voight Date: Tue, 27 Nov 2012 02:48:39 +0000 (-0500) Subject: also ignore old shares in initial share exchange X-Git-Tag: 9.1~3 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=0f89cbab18125ecb526dc7feeeeb3845260bf191 also ignore old shares in initial share exchange --- diff --git a/p2pool/node.py b/p2pool/node.py index 8e414c0..6f88a22 100644 --- a/p2pool/node.py +++ b/p2pool/node.py @@ -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))