git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2538145
)
also ignore old shares in initial share exchange
author
Forrest Voight
<forrest@forre.st>
Tue, 27 Nov 2012 02:48:39 +0000 (21:48 -0500)
committer
Forrest Voight
<forrest@forre.st>
Tue, 27 Nov 2012 02:48:39 +0000 (21:48 -0500)
p2pool/node.py
patch
|
blob
|
history
diff --git
a/p2pool/node.py
b/p2pool/node.py
index
8e414c0
..
6f88a22
100644
(file)
--- a/
p2pool/node.py
+++ b/
p2pool/node.py
@@
-56,7
+56,7
@@
class P2PNode(p2p.Node):
except:
log.err(None, 'in handle_share_hashes:')
else:
- self.handle_shares(shares, peer)
+ self.handle_shares([x for x in shares if isinstance(x, p2pool_data.NewNewShare)], peer)
def handle_get_shares(self, hashes, parents, stops, peer):
parents = min(parents, 1000//len(hashes))