decreased number of requested shares from 501 to 300 to avoid "sharereply too long...
authorForrest Voight <forrest@forre.st>
Sun, 2 Dec 2012 04:02:57 +0000 (23:02 -0500)
committerForrest Voight <forrest@forre.st>
Sun, 2 Dec 2012 04:03:26 +0000 (23:03 -0500)
p2pool/node.py

index 787cc53..f5bb93d 100644 (file)
@@ -110,7 +110,7 @@ class P2PNode(p2p.Node):
                 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],