Skip to content

Commit

Permalink
decreased number of requested shares from 501 to 300 to avoid "sharer…
Browse files Browse the repository at this point in the history
…eply too long" errors
  • Loading branch information
forrestv committed Dec 2, 2012
1 parent 5579f77 commit 216839e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2pool/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def download_shares():
try:
shares = yield peer.get_shares(
hashes=[share_hash],
parents=500,
parents=300-1,
stops=list(set(self.node.tracker.heads) | set(
self.node.tracker.get_nth_parent_hash(head, min(max(0, self.node.tracker.get_height_and_last(head)[0] - 1), 10)) for head in self.node.tracker.heads
))[:100],
Expand Down

0 comments on commit 216839e

Please sign in to comment.