fixed p2p for new shares
authorForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 16:09:00 +0000 (16:09 +0000)
committerForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 16:09:00 +0000 (16:09 +0000)
p2pool/p2p.py

index 3e979e3..751929b 100644 (file)
@@ -212,8 +212,9 @@ class Protocol(bitcoin_p2p.BaseProtocol):
     def handle_shares(self, shares):
         res = []
         for share in shares:
-            share_obj = p2pool_data.Share.from_share(share, self.node.net)
+            share_obj = p2pool_data.NewShare.from_share(share, self.node.net)
             share_obj.peer = self
+            res.append(share_obj)
         self.node.handle_shares(res)
     
     message_share1as = bitcoin_data.ComposedType([