git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
0396dd8
)
start using "stops" in share requests again
author
Forrest Voight
<forrest.voight@gmail.com>
Sun, 25 Nov 2012 17:31:19 +0000 (12:31 -0500)
committer
Forrest Voight
<forrest.voight@gmail.com>
Mon, 26 Nov 2012 01:49:54 +0000 (20:49 -0500)
p2pool/node.py
patch
|
blob
|
history
diff --git
a/p2pool/node.py
b/p2pool/node.py
index
ef60fb1
..
621d0c1
100644
(file)
--- a/
p2pool/node.py
+++ b/
p2pool/node.py
@@
-51,7
+51,9
@@
class P2PNode(p2p.Node):
shares = yield peer.get_shares(
hashes=new_hashes,
parents=0,
- stops=[],
+ 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],
)
except:
log.err(None, 'in handle_share_hashes:')