X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=p2pool%2Fwork.py;h=e1c677d1ab3d4a2758f741fd8396287de91d221c;hb=8e7cb8223a38bdd4ff55971d2945f5ccb571e063;hp=21dac58eb479178a3667d6e4f47ad83c5191c470;hpb=0460c6cf03b8da4a5accb5ac26606e596a5571ff;p=p2pool.git diff --git a/p2pool/work.py b/p2pool/work.py index 21dac58..e1c677d 100644 --- a/p2pool/work.py +++ b/p2pool/work.py @@ -67,7 +67,7 @@ class WorkerBridge(worker_interface.WorkerBridge): def set_merged_work(merged_url, merged_userpass): merged_proxy = jsonrpc.HTTPProxy(merged_url, dict(Authorization='Basic ' + base64.b64encode(merged_userpass))) while self.running: - auxblock = yield deferral.retry('Error while calling merged getauxblock:', 30)(merged_proxy.rpc_getauxblock)() + auxblock = yield deferral.retry('Error while calling merged getauxblock on %s:' % (merged_url,), 30)(merged_proxy.rpc_getauxblock)() self.merged_work.set(math.merge_dicts(self.merged_work.value, {auxblock['chainid']: dict( hash=int(auxblock['hash'], 16), target='p2pool' if auxblock['target'] == 'p2pool' else pack.IntType(256).unpack(auxblock['target'].decode('hex')), @@ -248,7 +248,7 @@ class WorkerBridge(worker_interface.WorkerBridge): local_hash_rate = self._estimate_local_hash_rate() if local_hash_rate is not None: desired_share_target = min(desired_share_target, - bitcoin_data.average_attempts_to_target(local_hash_rate * self.node.net.SHARE_PERIOD / 0.05)) # limit to 5% of pool shares by modulating share difficulty + bitcoin_data.average_attempts_to_target(local_hash_rate * self.node.net.SHARE_PERIOD / 0.0167)) # limit to 1.67% of pool shares by modulating share difficulty local_addr_rates = self.get_local_addr_rates() lookbehind = 3600//self.node.net.SHARE_PERIOD