From: Forrest Voight Date: Tue, 27 Nov 2012 00:11:17 +0000 (-0500) Subject: ignore old share broadcasts X-Git-Tag: 9.1~5 X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=b8a3319b768212208894d2d67ef1e60558e9515c ignore old share broadcasts --- diff --git a/p2pool/p2p.py b/p2pool/p2p.py index b2d6e22..b8a0995 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -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: