lower maximum shares per node from 5% to 1.67% (from minimum of 10 minutes per share...
authorForrest Voight <forrest@forre.st>
Tue, 5 Nov 2013 00:06:13 +0000 (19:06 -0500)
committerForrest Voight <forrest@forre.st>
Tue, 5 Nov 2013 00:06:13 +0000 (19:06 -0500)
p2pool/work.py

index 21dac58..d7e7776 100644 (file)
@@ -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