git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
727db88
)
Do not print "Sending 0 shares"
author
Rav3nPL
<rav3n.pl@gmail.com>
Fri, 30 Nov 2012 00:04:08 +0000 (
01:04
+0100)
committer
Forrest Voight
<forrest@forre.st>
Fri, 30 Nov 2012 00:21:35 +0000 (19:21 -0500)
p2pool/node.py
patch
|
blob
|
history
diff --git
a/p2pool/node.py
b/p2pool/node.py
index
dde48ea
..
1b7b94e
100644
(file)
--- a/
p2pool/node.py
+++ b/
p2pool/node.py
@@
-67,7
+67,8
@@
class P2PNode(p2p.Node):
if share.hash in stops:
break
shares.append(share)
- print 'Sending %i shares to %s:%i' % (len(shares), peer.addr[0], peer.addr[1])
+ if len(shares) > 0:
+ print 'Sending %i shares to %s:%i' % (len(shares), peer.addr[0], peer.addr[1])
return shares
def handle_bestblock(self, header, peer):