git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
de8de81
)
fixed division by zero bug
author
Forrest Voight
<forrest@forre.st>
Fri, 29 Jul 2011 07:09:05 +0000 (
03:09
-0400)
committer
Forrest Voight
<forrest@forre.st>
Fri, 29 Jul 2011 07:09:05 +0000 (
03:09
-0400)
p2pool/p2p.py
patch
|
blob
|
history
diff --git
a/p2pool/p2p.py
b/p2pool/p2p.py
index
c908fe3
..
bbafaa3
100644
(file)
--- a/
p2pool/p2p.py
+++ b/
p2pool/p2p.py
@@
-82,7
+82,7
@@
class Protocol(bitcoin_p2p.BaseProtocol):
while self.connected2:
self.send_addrme(port=self.node.port)
#print 'sending addrme'
- yield deferral.sleep(random.expovariate(1/(100*len(self.node.peers))))
+ yield deferral.sleep(random.expovariate(1/(100*len(self.node.peers) + 1)))
message_version = bitcoin_data.ComposedType([
('version', bitcoin_data.StructType('<I')),