changed delay on getauxblock error from 1 second to 30 so there's less spam when...
authorForrest Voight <forrest@forre.st>
Sun, 24 Jun 2012 16:03:24 +0000 (12:03 -0400)
committerForrest Voight <forrest@forre.st>
Sun, 24 Jun 2012 16:38:59 +0000 (12:38 -0400)
p2pool/work.py

index 57c9769..0b76b57 100644 (file)
@@ -61,7 +61,7 @@ class WorkerBridge(worker_interface.WorkerBridge):
         def set_merged_work(merged_url, merged_userpass):
             merged_proxy = jsonrpc.Proxy(merged_url, dict(Authorization='Basic ' + base64.b64encode(merged_userpass)))
             while True:
-                auxblock = yield deferral.retry('Error while calling merged getauxblock:', 1)(merged_proxy.rpc_getauxblock)()
+                auxblock = yield deferral.retry('Error while calling merged getauxblock:', 30)(merged_proxy.rpc_getauxblock)()
                 self.merged_work.set(dict(self.merged_work.value, **{auxblock['chainid']: dict(
                     hash=int(auxblock['hash'], 16),
                     target=pack.IntType(256).unpack(auxblock['target'].decode('hex')),