From: Forrest Voight Date: Tue, 29 Nov 2011 15:26:48 +0000 (-0500) Subject: fixed handle_shares not setting Share.peer X-Git-Tag: 0.8.2~148 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=70ed81c7ec7314a054e274223d9802b13746f559;p=p2pool.git fixed handle_shares not setting Share.peer --- diff --git a/p2pool/p2p.py b/p2pool/p2p.py index 1bb193a..3e979e3 100644 --- a/p2pool/p2p.py +++ b/p2pool/p2p.py @@ -210,7 +210,11 @@ class Protocol(bitcoin_p2p.BaseProtocol): ('shares', bitcoin_data.ListType(p2pool_data.new_share_type)), ]) def handle_shares(self, shares): - self.node.handle_shares([p2pool_data.Share.from_share(x, self.node.net) for x in shares], self) + res = [] + for share in shares: + share_obj = p2pool_data.Share.from_share(share, self.node.net) + share_obj.peer = self + self.node.handle_shares(res) message_share1as = bitcoin_data.ComposedType([ ('share1as', bitcoin_data.ListType(p2pool_data.share1a_type)),