Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

completed previous incomplete patch of memory leak

  • Loading branch information...
commit 4eb118be2409d4b9f8f4848a36f6d6d01162e8a8 1 parent f791b50
@forrestv authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  p2pool/data.py
  2. +1 −1  p2pool/p2p.py
View
1  p2pool/data.py
@@ -40,6 +40,7 @@ def check_hash_link(hash_link, data, const_ending=''):
])
def load_share(share, net, peer_addr):
+ assert isinstance(peer_addr, tuple)
if share['type'] in [0, 1, 2, 3, 4, 5, 6, 7, 8]:
from p2pool import p2p
raise p2p.PeerMisbehavingError('sent an obsolete share')
View
2  p2pool/p2p.py
@@ -310,7 +310,7 @@ def handle_sharereq(self, id, hashes, parents, stops):
])
def handle_sharereply(self, id, result, shares):
if result == 'good':
- res = [p2pool_data.load_share(share, self.node.net, self) for share in shares if share['type'] >= 9]
+ res = [p2pool_data.load_share(share, self.node.net, self.addr) for share in shares if share['type'] >= 9]
else:
res = failure.Failure("sharereply result: " + result)
self.get_shares.got_response(id, res)
Please sign in to comment.
Something went wrong with that request. Please try again.