git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e819736
)
don't stop looking at shares when a dup is hit
author
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 20:36:30 +0000 (16:36 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 19 Jul 2011 20:36:30 +0000 (16:36 -0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
357bb05
..
81864b2
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-166,9
+166,9
@@
def main(args):
for share in shares:
if share.hash in tracker.shares:
print 'Got duplicate share, ignoring. Hash: %x' % (share.hash,)
- return
+ continue
- #print 'Received share %x' % (share.hash,)
+ #print 'Received share %x from %r' % (share.hash, share.peer.transport.getPeer() if share.peer is not None else None)
tracker.add(share)
#for peer2, share_hash in desired: