increased announce wait time to one minute
authorForrest Voight <forrest@forre.st>
Mon, 12 Mar 2012 05:21:17 +0000 (01:21 -0400)
committerForrest Voight <forrest@forre.st>
Mon, 12 Mar 2012 05:21:17 +0000 (01:21 -0400)
p2pool/main.py

index 04aa1c0..c62564a 100644 (file)
@@ -722,7 +722,7 @@ def main(args, net, datadir_path, merged_urls, worker_endpoint):
                     if share.pow_hash <= share.header['bits'].target and share.header_hash not in self.announced_hashes and abs(share.timestamp - time.time()) < 10*60:
                         self.announced_hashes.add(share.header_hash)
                         message = '\x02%s BLOCK FOUND by %s! %s%064x' % (net.NAME.upper(), bitcoin_data.script2_to_address(share.new_script, net.PARENT), net.PARENT.BLOCK_EXPLORER_URL_PREFIX, share.header_hash)
-                        self.delayed_messages[message] = reactor.callLater(random.expovariate(1/5), lambda: (self.say(self.channel, message), self.delayed_messages.pop(message)))
+                        self.delayed_messages[message] = reactor.callLater(random.expovariate(1/60), lambda: (self.say(self.channel, message), self.delayed_messages.pop(message)))
                 def connectionLost(self, reason):
                     tracker.verified.added.unwatch(self.watch_id)
                     print 'IRC connection lost:', reason.getErrorMessage()